Skip to content

chore: release 1.9.7-naruto (#3221) #21

chore: release 1.9.7-naruto (#3221)

chore: release 1.9.7-naruto (#3221) #21

# 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 }}"