-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.04 KB
/
release.yml
File metadata and controls
43 lines (33 loc) · 1.04 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
name: Build
on:
push:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts # Download artifacts to this directory
- name: Create package.json
run: |
echo '{"version": "1.0.0"}' > package.json
- name: Install dependencies
run: npm install --save-dev semantic-release @semantic-release/git @semantic-release/changelog
# - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
# run: npm audit signatures
# Create a new release using the rules in .releaserc.yml
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
if: github.ref == 'refs/heads/main'