-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.12 KB
/
release.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
42
43
44
45
46
47
48
49
name: Release Workflow
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Git identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "simwai"
- name: Set up Git to use PAT
run: |
git remote set-url origin https://x-access-token:${{ secrets.TOKEN }}@github.com/simwai/referral-link-inserter.git
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.12.2'
- name: Install Dependencies
run: npm ci
- name: Run Tests
run: npm test
- name: Build dist
run: npm run-script build
- name: Create Release ZIP
run: npm run-script zip
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
run: npx semantic-release
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: referral-link-inserter.zip