-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.14 KB
/
release.yml
File metadata and controls
47 lines (39 loc) · 1.14 KB
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
37
38
39
40
41
42
43
44
45
46
47
name: Release JS
# Permissions for the workflow to use Trusted Actions
# See https://docs.npmjs.com/trusted-publishers#supported-cicd-providers
permissions:
id-token: write # Required for OIDC
contents: write # Required for changesets to commit and push
pull-requests: write # Required for changesets to check existing PRs
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
commitMode: 'github-api'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}