Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
detectonly:
name: Detect use of .only
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Detect use of .only
Expand All @@ -17,6 +18,7 @@ jobs:
default:
name: "Default"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
Expand All @@ -43,6 +45,7 @@ jobs:
asyncify:
name: Asyncify
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
Expand All @@ -68,6 +71,7 @@ jobs:
opfs:
name: OPFS
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -98,6 +102,7 @@ jobs:
opfs-sab-free:
name: OPFS (SAB-free ASYNCIFY + JSPI + loader)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -147,6 +152,7 @@ jobs:
package:
name: "Package (tarball browser tests)"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@ on:
push:
branches: [ master ]
permissions:
contents: read
contents: write # create the GitHub release + tag after a successful npm publish
id-token: write
jobs:
default:
name: "Publish"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Default
env:
GH_TOKEN: ${{ github.token }}
run: |
npm install
sh setup.sh
Expand Down Expand Up @@ -50,6 +53,10 @@ jobs:
# always does a dry-run, never a real publish.
if [[ "$VERSION" != "$NEWVERSION" && "$GITHUB_EVENT_NAME" = "push" ]]; then
npm publish --provenance --access public
# Announce the release on GitHub so watchers/stargazers are notified;
# notes are generated from the PRs merged since the previous tag.
gh release create "v$NEWVERSION" --target "$GITHUB_SHA" \
--title "v$NEWVERSION" --generate-notes
elif [[ "$VERSION" != "$NEWVERSION" ]]; then
echo "version change is $VERSION->$NEWVERSION, event is $GITHUB_EVENT_NAME, not publishing, only dry-run"
npm publish --dry-run
Expand Down
Loading