-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.84 KB
/
release.yml
File metadata and controls
62 lines (51 loc) · 1.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: ⚡ Release
on:
workflow_run:
workflows: ['⚡ Code quality']
branches: [main]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
publish:
name: 🛩️ Release & Publish
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 🛰️ Release please
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
id: release
with:
config-file: release-please/config.json
manifest-file: release-please/manifest.json
- name: ⬇️ Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: ${{ steps.release.outputs.release_created }}
- name: 📦 Setup pnpm
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
if: ${{ steps.release.outputs.release_created }}
- name: ⎔ Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
if: ${{ steps.release.outputs.release_created }}
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
- name: 📥 Install deps
if: ${{ steps.release.outputs.release_created }}
run: pnpm install --frozen-lockfile --ignore-scripts
- name: ⚙️ Building package
if: ${{ steps.release.outputs.release_created }}
run: pnpm build
- name: 🚀 Publish package
id: publish
if: ${{ steps.release.outputs.release_created }}
env:
NPM_CONFIG_PROVENANCE: 'true'
NODE_AUTH_TOKEN: '' # Clear placeholder set by setup-node to enable OIDC
run: npm publish ./dist --access public --provenance