Skip to content

Commit

Permalink
Bump jsbt helpers 0.3.0. Add build:release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 18, 2025
1 parent be9b8eb commit e8d2bf8
Show file tree
Hide file tree
Showing 14 changed files with 541 additions and 534 deletions.
56 changes: 7 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,14 @@ name: Publish release
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish-jsr:
name: Publish to JSR.io
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- run: npm install -g jsr
- run: jsr publish
publish-npm:
name: Publish to NPM
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
standalone:
name: Upload files to GitHub Releases
runs-on: ubuntu-latest
test-js:
name: 'jsbt v0.3.0' # Should match commit below
uses: paulmillr/jsbt/.github/workflows/test-js.yml@973650a225c0344aa5f993a6cd63835a262077e9
with:
build-path: test/build
secrets:
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run build
- run: |
cd build
npm ci
npm run build:release
cd ..
- run: gh release upload ${{ github.event.release.tag_name }} build/`npx jsbt outfile`
env:
GH_TOKEN: ${{ github.token }}
4 changes: 2 additions & 2 deletions .github/workflows/test-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ on:
- pull_request
jobs:
test-js:
name: 'JS v0.2.2' # v0.2.2 == commit below
uses: paulmillr/jsbt/.github/workflows/test-js.yml@4d4e3743023353f0bde7e6dc3b682cc9c1723232
name: 'jsbt v0.3.0' # Should match commit below
uses: paulmillr/jsbt/.github/workflows/test-js.yml@973650a225c0344aa5f993a6cd63835a262077e9
2 changes: 1 addition & 1 deletion .github/workflows/test-slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Test large inputs
runs-on: ubuntu-latest
env:
MSHOULD_FAST: ''
MSHOULD_FAST: 0
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- name: Use Node.js ${{ matrix.node }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ node_modules
*.d.ts
*.d.ts.map
*.js.map
/build
/test/build
*.tgz
7 changes: 0 additions & 7 deletions build/README.md

This file was deleted.

Loading

0 comments on commit e8d2bf8

Please sign in to comment.