Skip to content

Commit

Permalink
Use auto to automate releases on PR merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth committed Oct 28, 2022
1 parent 28ca551 commit db4b640
Show file tree
Hide file tree
Showing 4 changed files with 3,358 additions and 146 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
- main
- auto-release

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
npm run release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ rules/rules.*
lib/**/*.js
addon/*.js
.vscode/
.env
Loading

0 comments on commit db4b640

Please sign in to comment.