Skip to content

Instantly share code, notes, and snippets.

@aleccool213
Created March 26, 2020 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aleccool213/c4bdee4928ea60aa79a8957236f6d3ff to your computer and use it in GitHub Desktop.
Save aleccool213/c4bdee4928ea60aa79a8957236f6d3ff to your computer and use it in GitHub Desktop.
# .github/workflows/test-and-release.yaml
name: Test and Release
on: [push]
jobs:
test-and-release:
name: Run tests and release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment