-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (33 loc) · 1000 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on: workflow_dispatch
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: install wasm-bindgen-cli
run: cargo install wasm-bindgen-cli
- name: install wasm-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
- uses: pnpm/action-setup@v4
with:
version: 9
- name: install dependencies
run: pnpm install
- name: install dependencies
run: pnpm install
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset-version
publish: pnpm changeset-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}