Skip to content

Merge pull request #7 from lifeomic/fix-cmd #6

Merge pull request #7 from lifeomic/fix-cmd

Merge pull request #7 from lifeomic/fix-cmd #6

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
environment: npm
env:
FORCE_COLOR: 1
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
npm access grant read-only lifeomic:readonly-developers '@lifeomic/turbo-remote-cache'