-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 818 Bytes
/
Copy pathpublish-release.yml
File metadata and controls
37 lines (32 loc) · 818 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: Publish release
on:
release:
types:
- released
jobs:
publish-release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}
fetch-depth: 0 # fetch full history for Git tests
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Test and create dist files
run: npm ci && npm run all
- name: Push dist to new tag
uses: teunmooij/github-versioned-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
include: |-
dist/licenses.txt
dist/index.js
README.md
LICENSE
action.yml