-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1020 Bytes
/
publish.yml
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
name: Publish and release
on:
workflow_dispatch:
repository_dispatch:
types:
- release-triggered
jobs:
release:
runs-on: ubuntu-latest
env:
NODE_VERSION: 20
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}
- name: "release"
id: publish
run: script/ci/release.sh
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.publish.outputs.version }}
name: Release v${{ steps.publish.outputs.version }}
body: ${{steps.publish.outputs.notes}}
draft: false
prerelease: false