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
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: 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 |