-
Notifications
You must be signed in to change notification settings - Fork 14
32 lines (29 loc) · 830 Bytes
/
release.yml
File metadata and controls
32 lines (29 loc) · 830 Bytes
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
name: Continuous Delivery
on:
release:
types: [published]
permissions:
contents: read
jobs:
build-package-and-publish-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
- name: Bump version to release
run: sed -i "s/v0.0.0/$RELEASE_VERSION/" ./package.json
env:
RELEASE_VERSION: ${{ github.ref_name }}
- name: Install dependencies required to build package
run: npm ci
- name: Build package
run: npm run build
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}