Added metrics collectors for brain #11
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: CD | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
name: Publish to NPM | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
name: Installing Node.js v18.x | |
with: | |
node-version: 18.x | |
- uses: actions/[email protected] | |
name: Cache Node.js dependencies | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-18.x-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-18.x-node- | |
- name: Installing dependencies | |
run: | | |
npm ci | |
- name: Execute lint & build | |
run: | | |
npm run lint | |
npm run build | |
- name: Cleanup | |
run: | | |
rm -rf node_modules/*/test/ node_modules/*/tests/ | |
- name: Compute GitHub tag | |
id: tag | |
uses: dawidd6/[email protected] | |
- name: Publish | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN | |
npm version ${{ steps.tag.outputs.tag }} | |
npm publish --access=public | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |