feishu-pages v0.6.9 #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'v*' | |
branches: | |
- release-npm | |
jobs: | |
release: | |
name: Release NPM (feishu-pages) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 21 | |
- name: Install dependencies & Build | |
run: | | |
yarn | |
yarn workspace feishu-docx build | |
yarn workspace feishu-pages build | |
- name: Publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
cd feishu-pages | |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | |
npm publish --access public |