Skip to content

Commit 955019d

Browse files
committed
fix(ci): authenticate GitHub Packages publish and bump version
- write scoped registry and auth token to active npm config in workflow - bump package version to 2.0.2 for next tag-based publish
1 parent 47c5b80 commit 955019d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444

4545
- name: Publish to GitHub Packages
4646
run: |
47-
npm config set @timmsy:registry https://npm.pkg.github.com
47+
echo "@timmsy:registry=https://npm.pkg.github.com" >> "$NPM_CONFIG_USERCONFIG"
48+
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> "$NPM_CONFIG_USERCONFIG"
4849
npm publish --registry=https://npm.pkg.github.com
4950
env:
5051
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@timmsy/riftjs",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"main": "index.js",
55
"scripts": {
66
"test": "npm run test:endpoints",

0 commit comments

Comments
 (0)