-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) 路 1.3 KB
/
Copy pathrelease-pkg.yaml
File metadata and controls
55 lines (45 loc) 路 1.3 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
name: Release
on:
push:
tags:
- 'v*'
env:
STORE_PATH: ''
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
packages: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: lts/*
# registry-url required. Learn more at
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
registry-url: 'https://registry.npmjs.org'
cache: pnpm
# npm 11.5.1 or later is required so update to latest to use OIDC trusted publisher
# https://github.com/eslint/config-inspector/pull/174/files
# https://github.com/e18e/ecosystem-issues/issues/201
- name: Update npm to latest for Trusted Publisher (OIDC)
run: npm install -g npm@latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Packages build
run: pnpm run build
- name: Packages publish
run: pnpm publish -r --access public --no-git-checks