Skip to content

Commit

Permalink
chore: add naruto workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Jul 26, 2023
1 parent 113162b commit 7cad0c6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/naruto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Support tdesign-vue@naruto publish
name: naruto publish

on:
push:
branches: [naruto]

jobs:
MERGED_INTO_NARUTO:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 18
- uses: actions/cache@v2
env:
cache-name: cache-nodemodules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm install
- run: npm run build
- name: publish
id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.TDESIGN_NPM_TOKEN }}
tag: ${{ 'naruto' }}
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MAIN_PULL_REQUEST

on:
pull_request:
branches: [develop, main, feature, feat/2.7]
branches: [develop, main, feature, naruto]
types: [opened, synchronize, reopened]

jobs:
Expand Down

0 comments on commit 7cad0c6

Please sign in to comment.