Skip to content

Commit

Permalink
ci: add the "Release" GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ginsburg committed Mar 16, 2022
1 parent d871617 commit 6025895
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
branches:
- master

jobs:
main:
name: Test and Release
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.KARMARUNNERBOT_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ env.GITHUB_TOKEN }}
fetch-depth: 0
- uses: browser-actions/setup-firefox@latest
- uses: actions/setup-node@v3
with:
node-version: 12
cache: npm
- run: npm ci
- run: npm run test
- run: npm run release
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"lib/*.js"
],
"scripts": {
"test": "jasmine && grunt"
"test": "jasmine && grunt",
"release": "grunt release"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -98,4 +99,4 @@
"Matthew Hill <[email protected]>",
"Milan Lempera <[email protected]>"
]
}
}

0 comments on commit 6025895

Please sign in to comment.