Skip to content

Commit 25f24aa

Browse files
committed
Fix workflows
1 parent 297b1bc commit 25f24aa

File tree

4 files changed

+19
-61
lines changed

4 files changed

+19
-61
lines changed

.github/workflows/release.yml

+7-49
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,14 @@ name: Publish release
22
on:
33
release:
44
types: [created]
5-
workflow_dispatch:
65
jobs:
7-
publish-jsr:
8-
name: Publish to JSR.io
9-
runs-on: ubuntu-latest
10-
permissions:
11-
contents: read
12-
id-token: write
13-
steps:
14-
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
15-
- run: npm install -g jsr
16-
- run: jsr publish
17-
publish-npm:
18-
name: Publish to NPM
19-
runs-on: ubuntu-latest
20-
permissions:
21-
contents: read
22-
id-token: write
23-
steps:
24-
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
25-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
26-
with:
27-
node-version: 22
28-
registry-url: 'https://registry.npmjs.org'
29-
cache: npm
30-
- run: npm ci
31-
- run: npm run build
32-
- run: npm publish --provenance --access public
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
35-
standalone:
36-
name: Upload files to GitHub Releases
37-
runs-on: ubuntu-latest
6+
release-js:
7+
name: "jsbt v0.3.0" # Should match commit below
8+
uses: paulmillr/jsbt/.github/workflows/release.yml@973650a225c0344aa5f993a6cd63835a262077e9
9+
with:
10+
build-path: test/build
11+
secrets:
12+
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
3813
permissions:
3914
contents: write
4015
id-token: write
41-
steps:
42-
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
43-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
44-
with:
45-
node-version: 22
46-
registry-url: 'https://registry.npmjs.org'
47-
cache: npm
48-
- run: npm ci
49-
- run: npm run build
50-
- run: |
51-
cd build
52-
npm ci
53-
npm run build:release
54-
cd ..
55-
- run: gh release upload ${{ github.event.release.tag_name }} build/`npx jsbt outfile`
56-
env:
57-
GH_TOKEN: ${{ github.token }}

.github/workflows/test-js.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ on:
44
- pull_request
55
jobs:
66
test-js:
7-
name: 'JS v0.2.2' # v0.2.2 == commit below
8-
uses: paulmillr/jsbt/.github/workflows/test-js.yml@986dbfea9667eeb0e81bf606cbe9ed169fea89b2
7+
name: "jsbt v0.3.0" # Should match commit below
8+
uses: paulmillr/jsbt/.github/workflows/test-js.yml@973650a225c0344aa5f993a6cd63835a262077e9

package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
"url": "git+https://github.com/paulmillr/micro-packed.git"
5252
},
5353
"devDependencies": {
54-
"@paulmillr/jsbt": "0.2.1",
54+
"@paulmillr/jsbt": "0.3.0",
5555
"fast-check": "3.0.0",
5656
"micro-bmark": "0.3.1",
57-
"micro-should": "0.5.0",
57+
"micro-should": "0.5.1",
5858
"prettier": "3.3.2",
5959
"typescript": "5.5.2"
6060
},

0 commit comments

Comments
 (0)