Release to KeepTrack.space #10
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 to KeepTrack.space | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
tag: | |
name: Add/update 'latest' tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run latest-tag | |
uses: EndBug/latest-tag@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_NPM_TOKEN }} | |
publish-npm: | |
name: Publish on NPM | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js for NPM | |
uses: actions/setup-node@v1 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish-gpr: | |
name: Publish on GPR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js for GPR | |
uses: actions/setup-node@v1 | |
with: | |
registry-url: 'https://npm.pkg.github.com/' | |
scope: '@thkruz' | |
- run: npm ci | |
- run: npm run publish:github | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_NPM_TOKEN }} |