-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
42 lines (38 loc) · 1.02 KB
/
release.yml
File metadata and controls
42 lines (38 loc) · 1.02 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
name: Release
on: workflow_dispatch
permissions:
id-token: write
contents: write
jobs:
checks:
uses: ./.github/workflows/ci.yml
release:
needs: checks
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Tag and Release
run: |
git config --global user.email "github-action@users.noreply.github.com"
git config --global user.name "GitHub Action"
pnpm ci:version
git add .
git commit -m "chore(release): publish"
pnpm ci:tag
pnpm ci:publish
git push && git push --tags
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_CONFIG_PROVENANCE: true