Skip to content

Commit cf2a96d

Browse files
committed
ci: fix GitHub Packages auth configuration and add continue-on-error
1 parent 96cc011 commit cf2a96d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,17 @@ jobs:
4040

4141
- name: Publish to GitHub Packages
4242
if: steps.npm_publish.outputs.type != 'none'
43+
continue-on-error: true
4344
run: |
44-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
45-
npm publish --registry=https://npm.pkg.github.com || true
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
npm config set //npm.pkg.github.com/:_authToken "${{ secrets.GITHUB_TOKEN }}"
46+
npm publish --registry=https://npm.pkg.github.com
4847
4948
- name: Create GitHub Release & Tag
5049
if: steps.npm_publish.outputs.type != 'none'
5150
uses: softprops/action-gh-release@v2
5251
with:
53-
tag_name: "v${{ steps.npm_publish.outputs.version }}"
54-
name: "Release v${{ steps.npm_publish.outputs.version }}"
52+
tag_name: 'v${{ steps.npm_publish.outputs.version }}'
53+
name: 'Release v${{ steps.npm_publish.outputs.version }}'
5554
generate_release_notes: true
5655
env:
5756
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)