Skip to content

Commit 072d8bd

Browse files
fix: attempt two
1 parent 2ef821e commit 072d8bd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ on:
1010
jobs:
1111
publish-npm:
1212
runs-on: ubuntu-latest
13-
defaults:
14-
run:
15-
working-directory: ./chimera-css
13+
permissions:
14+
contents: read
15+
packages: write
1616
steps:
1717
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
1820
- uses: actions/setup-node@v3
1921
with:
2022
node-version: 16
@@ -25,9 +27,10 @@ jobs:
2527
run: |
2628
git config --global user.email "[email protected]"
2729
git config --global user.name "J0hans1"
28-
- name: Set package version
29-
run: npm version ${{ github.event.release.tag_name }}
3030
- name: Publish package
31-
run: cd chimera-css && npm publish
31+
run: |
32+
cd chimera-css
33+
npm version ${{ github.event.release.tag_name }}
34+
npm publish
3235
env:
3336
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)