Skip to content

Commit

Permalink
Add release-feishu-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Sep 1, 2023
1 parent 4cd7898 commit a6ca549
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
File renamed without changes.
32 changes: 32 additions & 0 deletions .github/workflows/release-feishu-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
tags:
- 'v*'
branches:
- release-npm
permissions:
contents: read
pages: write
id-token: write
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: 16
- name: Install dependencies & Build
run: |
cd feishu-pages
yarn
yarn 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

0 comments on commit a6ca549

Please sign in to comment.