Skip to content

Merge pull request #15 from lifeomic/dependabot/npm_and_yarn/micromat… #14

Merge pull request #15 from lifeomic/dependabot/npm_and_yarn/micromat…

Merge pull request #15 from lifeomic/dependabot/npm_and_yarn/micromat… #14

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
environment: npm
env:
FORCE_COLOR: 1
NPM_CONFIG_PROVENANCE: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: |
yarn lint
yarn test
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.LIFEOMIC_NPM_TOKEN }}
run: |
yarn build
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npx semantic-release