-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 973 Bytes
/
release.yaml
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
# Runs on release tag push, but not prereleases, we hope!
name: Release & Publish
on:
push:
tags:
- 'v*.*.*'
permissions:
packages: write
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: x.20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Build all bundles
env:
NODE_ENV: production
run: |
npm ci --include=dev
npm run build
- uses: ncipollo/release-action@v1
with:
name: '${{ github.ref_name }}'
body: 'Automated release of ${{ github.ref_name }} built by ${{ github.actor }}.'
artifacts: 'dist-bundle/*'
- name: Publish release to npmjs.com
run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}