Skip to content

Commit

Permalink
chore: add semantic-release automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored and Trott committed Apr 18, 2024
1 parent 9e1d369 commit 9dfa537
Show file tree
Hide file tree
Showing 3 changed files with 10,316 additions and 2,975 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Test & Maybe Release

on:
push:
Expand Down Expand Up @@ -42,3 +42,26 @@ jobs:

- name: Run tests
run: npm test

release:
name: Release
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: |
npm install --no-progress --no-package-lock --no-save
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit 9dfa537

Please sign in to comment.