Skip to content

✨ feat(workflow): 测试打包部署npm包 #1

✨ feat(workflow): 测试打包部署npm包

✨ feat(workflow): 测试打包部署npm包 #1

Workflow file for this run

name: Build and Publish
on:
push:
tags:
- v*
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
scope: '@marherb-work'
- name: Install dependencies
run: yarn install
- name: Build package
run: yarn build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}