Skip to content

v0.1.46

v0.1.46 #54

Workflow file for this run

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