Release #8
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: Release | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: | |
packages: write | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
release-and-publish: | |
name: Release and publish to NPM registry | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Release and publish to NPM registry | |
env: | |
NPM_LOGIN_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SUPERCHARGE_BOT_DEPLOY_KEY: ${{ secrets.SUPERCHARGE_BOT_DEPLOY_KEY }} | |
run: ./release.sh |