Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
feat: add publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Jun 21, 2022
1 parent fef0fbc commit 3e652b3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: yarn
- run: yarn build
- id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- if: steps.publish.outputs.type != 'none'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taro-lottie",
"version": "0.0.4",
"version": "1.0.0",
"description": "lottie for taro",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down

0 comments on commit 3e652b3

Please sign in to comment.