v0.1.45 #53
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: build and publish | |
# This action will trigger on every published release | |
on: | |
release: | |
types: | |
- published | |
# Job will run on a ubuntu instance | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout package repo | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
check-latest: true | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@mattermost' | |
- name: install dependencies | |
run: npm install | |
- name: build component library | |
run: npm run build | |
- name: publish to npm | |
working-directory: ./build | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |