-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (32 loc) · 985 Bytes
/
publish.yaml
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
on:
push:
tags:
- '[a-z]+@[0-9]+.[0-9]+.[0-9]+'
- '[a-z]+-[a-z]+@[0-9]+.[0-9]+.[0-9]+'
- '[a-z]+-[a-z]+-[a-z]+@[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # Required for publishing the GitHub release.
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- name: Checkout
uses: actions/checkout@v4
- 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
registry-url: https://registry.npmjs.org
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Publish
run: pnpm publish-release-ci ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}