Skip to content

Update publish.yaml #10

Update publish.yaml

Update publish.yaml #10

Workflow file for this run

name: Publish Package
on:
push:
branches:
- main
jobs:
publish:
runs-on: ["self-hosted", "k8s-prod"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-node@v3
- run: corepack enable
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Login to NPM
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
run: echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" >> ~/.npmrc
- name: Publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
run: npm publish