Skip to content

Commit 41b14bd

Browse files
committed
fix release
1 parent fefd098 commit 41b14bd

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Publish Package to npmjs
22
on:
3-
release:
4-
types: [published]
3+
push:
4+
tags:
5+
- '**[0-9]+.[0-9]+.[0-9]+*'
6+
57
jobs:
68
build:
79
runs-on: ubuntu-latest
@@ -22,11 +24,12 @@ jobs:
2224
with:
2325
node-version: '20.x'
2426
cache: 'pnpm'
27+
registry-url: 'https://registry.npmjs.org/'
28+
scope: '@pomsky-lang'
2529

2630
- run: pnpm install
2731

28-
- run: |
29-
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
30-
pnpm publish --access public --no-git-checks
32+
- run: pnpm publish --access public --no-git-checks
3133
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3235
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)