-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.39 KB
/
release.yml
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
name: release-please
concurrency:
group: ${{ github.workflow }}
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
steps:
- name: Create Release
id: release
uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4
# see https://github.com/google-github-actions/release-please-action#automating-publication-to-npm
- name: Checkout Repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install
if: ${{ steps.release.outputs.release_created }}
uses: bahmutov/npm-install@ec9e87262db2a1be2ca3ceb2d506c413a220542c # v1.10.5
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: npm run build
- name: Publish to npm
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish --provenance --access public