chore(release): 0.2.2 #8
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: Publish to NPM and GitHub Packages | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish_to_npm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js and NPM | |
uses: actions/setup-node@v2 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@rx-angular' | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm ci | |
- name: Publish to NPM | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish_to_gpr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js and NPM | |
uses: actions/setup-node@v2 | |
with: | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@rx-angular' | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm ci | |
- name: Publish to GPR | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |