-
-
Notifications
You must be signed in to change notification settings - Fork 668
47 lines (42 loc) · 1.23 KB
/
release.yml
File metadata and controls
47 lines (42 loc) · 1.23 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
on:
push:
branches:
- master
workflow_dispatch:
name: release-please
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/release/config.json
manifest-file: .github/release/manifest.json
- uses: actions/checkout@v6
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v6
if: ${{ steps.release.outputs.release_created }}
with:
check-latest: true
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false
- name: Cache dependencies
uses: actions/cache@v5
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish --provenance
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}