Skip to content

Release to KeepTrack.space #10

Release to KeepTrack.space

Release to KeepTrack.space #10

Workflow file for this run

---
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 }}