-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from wszgrcy/移除装饰器
移除装饰器
- Loading branch information
Showing
100 changed files
with
1,187 additions
and
10,723 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- alpha | ||
env: | ||
REPOSITORY_PATH: https://${{secrets.ACCESS_TOKEN}}@github.com/ | ||
# GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}} | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: init | ||
run: | | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.email "${GITHUB_ACTOR}@gmail.com" | ||
- name: pull-code | ||
uses: actions/checkout@v2 | ||
- name: install-node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20.x | ||
- name: install-dependencies | ||
run: | | ||
yarn | ||
- name: test | ||
run: | | ||
yarn test | ||
- name: build | ||
run: | | ||
yarn build | ||
- id: publish | ||
name: publish | ||
uses: JS-DevTools/[email protected] | ||
with: | ||
token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
package: ./dist/package.json | ||
tag: alpha | ||
- if: steps.publish.outputs.old-version != steps.publish.outputs.version | ||
run: | | ||
echo "[${{ steps.publish.outputs.type }}]Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}" | ||
git tag v${{steps.publish.outputs.version}} | ||
git push origin v${{steps.publish.outputs.version}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.