-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (55 loc) · 1.64 KB
/
Copy pathrelease.yml
File metadata and controls
62 lines (55 loc) · 1.64 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
on:
workflow_dispatch:
push:
branches:
- next
jobs:
release-npm:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
issues: write
pull-requests: write
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
steps:
- name: Checkout 🔰
uses: actions/checkout@v6
- name: Setup Node.js 🧮
uses: actions/setup-node@v6
with:
node-version: 24
- name: Cache Node.js modules 💾
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies ⏬
run: npm ci
- name: Build (dist) artifacts 🏗️
run: npm run build:dist
- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v6
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
release-docker:
needs: release-npm
uses: ./.github/workflows/release_docker.yml
with:
release_is_published: ${{ needs.release-npm.outputs.new_release_published }}
release_version: ${{ needs.release-npm.outputs.new_release_version }}
secrets:
nexus_user: ${{ secrets.NEXUS_USERNAME }}
nexus_pass: ${{ secrets.NEXUS_PASSWORD }}