-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 919 Bytes
/
publish-release.yml
File metadata and controls
40 lines (32 loc) · 919 Bytes
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
name: Publish & Release
on:
push:
branches:
- beta
permissions:
contents: write
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'Version Packages')"
steps:
- uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4.1.0
- uses: actions/setup-node@v5.0.0
with:
node-version: lts/*
cache: 'pnpm'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish to NPM
uses: changesets/action@v1.5.3
with:
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}