Skip to content

Commit 72055f0

Browse files
author
DavertMik
committed
fixed publishing beta
1 parent e011581 commit 72055f0

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/publish-beta.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@ on:
55
types: [published]
66

77
permissions:
8-
contents: read
8+
contents: write
99
id-token: write
1010

1111
jobs:
1212
publish:
13-
name: Publish to npm
14-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-latest
1514
if: ${{ github.event.release.prerelease || contains(github.event.release.tag_name, 'alpha') || contains(github.event.release.tag_name, 'beta') || contains(github.event.release.tag_name, 'rc') }}
1615

1716
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v6
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.release.target_commitish }}
2020

21-
- name: Setup Node.js
22-
uses: actions/setup-node@v6
21+
- uses: actions/setup-node@v4
2322
with:
24-
node-version: '20.x'
23+
node-version: 22
24+
registry-url: 'https://registry.npmjs.org'
25+
26+
- run: npm install -g npm@latest
27+
28+
- run: npm ci
2529

2630
- name: Set package version
2731
run: |
@@ -30,6 +34,4 @@ jobs:
3034
npm version "$VERSION" --no-git-tag-version
3135
3236
- name: Publish to npm
33-
run: npm publish --provenance --access public --tag beta
34-
env:
35-
npm_config_ignore_scripts: true
37+
run: npm publish --provenance --tag beta

0 commit comments

Comments
 (0)