-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.23 KB
/
continuous-delivery.yml
File metadata and controls
61 lines (51 loc) · 1.23 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
# When a PR is merged, or when run manually, this workflow will build and
# package the GitHub Pages artifacts.
name: Continuous Delivery
on:
push:
branches:
- main
workflow_dispatch:
permissions:
actions: read
contents: write
id-token: write
packages: write
security-events: write
jobs:
cd:
name: Release Node.js Project
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: install
run: npm install
- name: Package
id: package
run: npm run package
- name: Upload Artifact
id: upload-artifact
uses: actions/upload-pages-artifact@v4
with:
path: .
- name: Tag
id: tag
uses: issue-ops/semver@v2
with:
manifest-path: package.json
workspace: ${{ github.workspace }}
ref: main
- name: Create Release
id: release
uses: issue-ops/releaser@v2
with:
tag: v${{ steps.tag.outputs.version }}