-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.32 KB
/
release.yml
File metadata and controls
47 lines (44 loc) · 1.32 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
name: Release
on:
push:
branches:
- main
permissions: {}
jobs:
release:
name: Release
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Release Please
id: release
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38
with:
release-type: node
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Setup Node
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238
with:
node-version: 20.x
package-manager-cache: false
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: npm ci
- name: Build library
if: ${{ steps.release.outputs.release_created }}
run: npm run build-lib
- name: Publish package
if: ${{ steps.release.outputs.release_created }}
uses: JS-DevTools/npm-publish@4ce4bd0f334d5316473155078da1955d42148494
with:
token: ${{ secrets.NPM_TOKEN}}
access: public
provenance: true