-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (38 loc) · 1010 Bytes
/
cd.yml
File metadata and controls
45 lines (38 loc) · 1010 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
38
39
40
41
42
43
44
45
name: Release
on:
workflow_run:
workflows: [Build & Test]
branches: master
types: completed
jobs:
release:
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'good-tools/wiregasm' }}
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Configure Node.js
uses: actions/setup-node@v3
with:
node-version: 22
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Download artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: lib
path: built/bin/
- name: Load Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release