Publish 0.7.* of core and exporters (#128) #3
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: Publish main @autometrics/autometrics and the exporters to NPM | |
on: | |
push: | |
tags: | |
- "lib-*" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup the project | |
run: yarn | |
- name: Run linter and format checker | |
run: yarn lint | |
- name: Run unit tests | |
run: yarn test | |
publish: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v3 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
scope: "@autometrics" | |
- run: yarn | |
- run: yarn release-lib | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |