Skip to content

Commit 071675a

Browse files
authored
update release to fix failing GHPR publish
1 parent c00138b commit 071675a

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
generate_release_notes: true
5858
})
5959
publish:
60-
name: Publish to npm
60+
name: Publish
6161
runs-on: ubuntu-latest
6262
needs: [bump-version, create-release]
6363
steps:
@@ -67,9 +67,19 @@ jobs:
6767
ref: ${{ needs.bump-version.outputs.new-tag }}
6868
- name: Preparation
6969
uses: ./.github/actions/setup
70-
- name: Build package
71-
run: npm run build --if-present
72-
- name: Publish
73-
run: npm publish --access public
70+
- name: Setup npm registry
71+
uses: actions/setup-node@v2
72+
with:
73+
registry-url: 'https://registry.npmjs.org'
74+
- name: Publish to npm
75+
run: npm publish
7476
env:
7577
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78+
- name: Setup GHPR
79+
uses: actions/setup-node@v2
80+
with:
81+
registry-url: 'https://npm.pkg.github.com'
82+
- name: Publish to GHPR
83+
run: npm publish
84+
env:
85+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)