Skip to content

Commit 622f396

Browse files
authored
chore: run semantic-release via absolute path
1 parent 7ea695a commit 622f396

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ inputs:
88

99
runs:
1010
using: "composite"
11+
env:
12+
DIR: /tmp/semantic-release-packages
1113
steps:
1214
- name: Setup Node.js
1315
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
@@ -16,7 +18,6 @@ runs:
1618

1719
- name: Set up publishing environment
1820
run: |
19-
DIR=/tmp/semantic-release-packages
2021
mkdir $DIR
2122
cp ${{ github.action_path }}/package.json $DIR/package.json
2223
cp -r ${{ github.action_path }}/.yarn $DIR/.yarn
@@ -28,7 +29,7 @@ runs:
2829
shell: bash
2930

3031
- name: Run semantic release
31-
run: semantic-release
32+
run: $DIR/node_modules/.bin/semantic-release
3233
shell: bash
3334
env:
3435
GITHUB_ACTION: 1

0 commit comments

Comments
 (0)