Skip to content

TAG_PUSH

TAG_PUSH #1127

Workflow file for this run

name: TAG_PUSH
on:
create
jobs:
TAG_PUSH:
runs-on: ubuntu-latest
if: github.event.ref_type == 'tag'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/install-dep
with:
nodeVersion: '14.6.0'
- run: npm run build
shell: bash
- name: release miniprogram
uses: LeeJim/setup-miniprogram@main
with:
project_type: miniProgram
action_type: upload
project_path: ./_example
version: ${{ github.ref_name }}
es6: true
es7: true
minify: true
env:
MINI_APP_ID: ${{ secrets.TDESIGN_APP_ID }}
MINI_APP_PRIVATE_KEY: ${{ secrets.TDESIGN_MINI_KEY }}
- id: publish
name: publish NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.TDESIGN_NPM_TOKEN }}
tag: ${{ contains(github.ref_name, 'alpha') && 'alpha' || 'latest' }}
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"