Skip to content

Commit b4ce99e

Browse files
committed
fix release
1 parent fefd098 commit b4ce99e

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 7 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
@@ -15,18 +17,22 @@ jobs:
1517
- name: Install pnpm
1618
uses: pnpm/action-setup@v4
1719
with:
18-
version: 9
20+
version: 10
1921

2022
- name: Setup Node.js
2123
uses: actions/setup-node@v4
2224
with:
23-
node-version: '20.x'
25+
node-version: '22.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+
- name: Check current npm config
33+
run: npm config list
34+
35+
- run: pnpm publish --access public --no-git-checks
3136
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3238
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)