-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.58 KB
/
release.yml
File metadata and controls
60 lines (51 loc) · 1.58 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
name: Automatic release
on:
pull_request:
branches:
- master
- main
types:
- closed
workflow_dispatch:
jobs:
release:
if: |
github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Type: Release')
permissions:
contents: write
id-token: write # OIDC
pull-requests: write # PR comment
name: check version, add tag and release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
scope : 'appstore-connect-jwt-generator-core'
package-manager-cache: false
- name: Can Publish
run : npx can-npm-publish --verbose
working-directory: package
- name: Install latest npm
run: |
echo "Current npm version: $(npm -v)"
npm install -g npm@latest
echo "Updated npm version: $(npm -v)"
- name: Install pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
with:
run_install: |
- recursive: true
args: [--no-frozen-lockfile]
- name: Build
run : pnpm build
working-directory: package
- name: Publish
run : pnpm -r publish --no-git-checks --access public --provenance
working-directory: package