Skip to content

fix(ci): setup .npmrc instead of env variable #9

fix(ci): setup .npmrc instead of env variable

fix(ci): setup .npmrc instead of env variable #9

Workflow file for this run

name: ci
on:
pull_request:
types: [opened, synchronize, reopened, closed]
workflow_dispatch:
jobs:
test_and_build:
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run test and build
run: |
yarn install
yarn test:all:no-watch
yarn tsc
yarn build:all
publish:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Publish package
run: |
yarn install
yarn tsc
yarn build:all
yarn lerna publish from-package --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}