Skip to content

Commit f45e3e8

Browse files
committed
ci(npm): publish with custom action
1 parent 9c47e83 commit f45e3e8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/npm.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ jobs:
3636
version: ${{ steps.version.outputs.tag }}
3737
package: 'gatsby-theme-woly/'
3838

39-
- name: Publish woly to NPM
40-
uses: primer/publish@3.0.0
41-
with:
42-
dir: 'gatsby-theme-woly'
39+
- name: Create NPM config
40+
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
4341
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
43+
44+
- name: Publish theme to NPM
45+
working-directory: ./gatsby-theme-woly
46+
run: npm publish

0 commit comments

Comments
 (0)