Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Merge pull request #2 from awell-health/yarn #2

Merge pull request #2 from awell-health/yarn

Merge pull request #2 from awell-health/yarn #2

Workflow file for this run

name: Create package and publish it
on:
push:
branches:
- "master"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: yarn install
run: yarn
- name: Compile Typescript
run: yarn run compile
- name: Setup .yarnrc.yml
run: |
yarn config set npmAlwaysAuth true
yarn config set npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISHER_TOKEN }}
- name: Publish new version to NPM Registry
run: |
yarn version --patch
yarn npm publish --access public