Skip to content

Commit 5dad542

Browse files
committed
Update release.yaml workflow
1 parent 4e6653c commit 5dad542

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/release.yaml

+5-7
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,20 @@ jobs:
1212
contents: write
1313
steps:
1414
- uses: actions/checkout@v4
15-
with:
16-
fetch-depth: 0
1715
- uses: actions/setup-node@v4
1816
with:
1917
node-version: 18
2018
cache: npm
21-
cache-dependency-path: package-lock.json
19+
cache-dependency-path: ./package-lock.json
2220
registry-url: "https://registry.npmjs.org"
2321
- run: npm install
22+
working-directory: .
2423
- run: npm run build
25-
- name: Set git user
26-
run: |
27-
git config --global user.email "[email protected]"
28-
git config --global user.name "npm-action"
24+
working-directory: .
2925
- run: npm version patch -m "Bump version to %s [skip ci]"
26+
working-directory: .
3027
- run: npm publish --access public
28+
working-directory: .
3129
env:
3230
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3331
- uses: stefanzweifel/git-auto-commit-action@v5

0 commit comments

Comments
 (0)