v0.1.61 #81
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
# This workflow will run tests using node and then publish a package to NPM when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: npm-publish | |
on: | |
release: | |
types: [published] | |
concurrency: | |
group: build-test-publish | |
jobs: | |
build-n-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org/ | |
scope: '@totalsoft' | |
- run: yarn -v | |
- name: Install Dependencies | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Bump version | |
run: yarn run version | |
- name: Set npm authToken from env | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
yarn config && | |
yarn config set npmScopes.totalsoft.npmRegistryServer "https://registry.npmjs.org/" && | |
yarn config set npmScopes.totalsoft.npmAlwaysAuth true && | |
yarn config set npmScopes.totalsoft.npmAuthToken $NODE_AUTH_TOKEN | |
- run: yarn publish |