Skip to content

chore(release): publish (#56) #37

chore(release): publish (#56)

chore(release): publish (#56) #37

Workflow file for this run

name: push-master
on:
push:
branches:
- master
jobs:
build_test_publish:
name: Build, test, and publish unstable release
if: "! contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test
- name: Publish unstable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc 2> /dev/null
git config user.name "Mattr CI"
git config user.email "npmjs_ci_mattr_public@mattr.global"
yarn publish:unstable