Skip to content

v1.0.23

v1.0.23 #38

Workflow file for this run

name: Publish package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
environment: npmjs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: CI
env:
BD_USERNAME: ${{secrets.BD_USERNAME}}
BD_PASSWORD: ${{secrets.BD_PASSWORD}}
run: |
yarn install --frozen-lockfile
yarn build
yarn lint
yarn test
publish-npmjs:
needs: build
runs-on: ubuntu-latest
environment: npmjs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: |
yarn build
yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
always-auth: true
registry-url: https://npm.pkg.github.com/
- name: Publish to GitHub packages repository
run: |
yarn build
yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}