v0.2.19 #80
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: Release | |
on: | |
release: | |
types: [created] | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: npm ci | |
- run: npm run build | |
# - run: npm test | |
# - name: Set package registry | |
# run: npm config set registry https://npm.pkg.github.com | |
# - name: Github package registry authentication | |
# run: npm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} | |
- name: Npm registry authentication | |
run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | |
- name: Publish the package to Github and Npm package registries | |
run: npm publish --access public --ignore-scripts --@electra.finance:registry='https://registry.npmjs.org' |