feat: allow templating of registry and name #238
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test + Release | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branch: | |
- main | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install | |
run: npm install | |
release: | |
name: release | |
needs: test | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- run: npm install | |
- name: Publish | |
run: npm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GIT_AUTHOR_NAME: 'Dependant Bot' | |
GIT_AUTHOR_EMAIL: 'release-bot@codedependant.net' | |
GIT_COMMITTER_NAME: 'Dependant Bot' | |
GIT_COMMITTER_EMAIL: 'release-bot@codedependant.net' | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |