-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (29 loc) · 812 Bytes
/
deploy.yaml
File metadata and controls
37 lines (29 loc) · 812 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
33
34
35
36
37
name: CI Deploy
on:
push:
tags:
- '*'
permissions:
contents: read
id-token: write
jobs:
deploy:
name: Release new version to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
- name: Generate Changelog
run: |
sed -n "/$GITHUB_REF_NAME/,/^$/{/^$/q;p;}" CHANGELOG.md > ${{ github.workspace }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
token: ${{ secrets.RELEASE_TOKEN }}