Skip to content

Commit b7cd041

Browse files
committed
Update release script (#2)
1 parent 96d699c commit b7cd041

25 files changed

Lines changed: 1027 additions & 1470 deletions
Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,38 @@
1-
name: Deploy to NPM
1+
name: Release Package
22

33
on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
packages: write
10+
711
jobs:
812
build-npm:
913
runs-on: ubuntu-latest
1014
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1317
with:
14-
node-version: '20.x'
18+
node-version: '24.x'
1519
registry-url: 'https://registry.npmjs.org'
1620
- run: yarn install --immutable
1721
- run: yarn build
1822
- run: npm publish --access public
1923
env:
2024
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
26+
build-ghp:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v3
30+
- uses: actions/setup-node@v3
31+
with:
32+
node-version: '24.x'
33+
registry-url: https://npm.pkg.github.com/
34+
- run: yarn install --immutable
35+
- run: yarn build
36+
- run: npm publish --access public
37+
env:
38+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.yarn/releases/yarn-4.12.0.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
nodeLinker: node-modules
2+
yarnPath: .yarn/releases/yarn-4.12.0.cjs

0 commit comments

Comments
 (0)