Skip to content

Commit 9dfa537

Browse files
rvaggTrott
authored andcommitted
chore: add semantic-release automatic releases
1 parent 9e1d369 commit 9dfa537

3 files changed

Lines changed: 10316 additions & 2975 deletions

File tree

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Test & Maybe Release
22

33
on:
44
push:
@@ -42,3 +42,26 @@ jobs:
4242

4343
- name: Run tests
4444
run: npm test
45+
46+
release:
47+
name: Release
48+
needs: test
49+
runs-on: ubuntu-latest
50+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
with:
55+
fetch-depth: 0
56+
- name: Setup Node.js
57+
uses: actions/setup-node@v3
58+
with:
59+
node-version: lts/*
60+
- name: Install dependencies
61+
run: |
62+
npm install --no-progress --no-package-lock --no-save
63+
- name: Release
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67+
run: npx semantic-release

0 commit comments

Comments
 (0)