New beta releases, and build provenance #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release beta | |
on: | |
push: | |
tags: | |
- 'v*-beta*' | |
permissions: | |
id-token: write | |
env: | |
NPM_CONFIG_PROVENANCE: true | |
jobs: | |
release-beta: | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v3 | |
- id: setup-bun | |
name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- id: setup-pnpm | |
name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
standalone: true | |
run_install: false | |
- id: install-deps | |
name: Install dependencies | |
run: pnpm install | |
- id: test | |
name: Run test | |
run: | | |
pnpm run test | |
- name: Build Package | |
run: pnpm run build | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
tag: beta |