Skip to content

Commit

Permalink
chore(ci): auto publish full
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya authored Sep 13, 2024
1 parent 1759725 commit 540f207
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches: main
# paths-ignore:
# - '**/*.md'
# - 'examples/**/*.html'
# - '**/*.md'
# - 'examples/**/*.html'

env:
CI: true
Expand Down Expand Up @@ -56,6 +56,22 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: \@oplayer/full github version update
if: steps.changesets.outputs.published == 'true'
uses: wranders/commit-action@v0
with:
message: auto update @oplayer/full
files: |
packages/full/package.json
- name: \@oplayer/full npm publish
if: steps.changesets.outputs.published == 'true'
run: |
cd packages/full
pnpm version prerelease
pnpm set //registry.npmjs.org/:_authToken=$secrets.NPM_TOKEN
pnpm publish
# 已被墙
# - name: build websites
# run: |
Expand Down
2 changes: 1 addition & 1 deletion packages/full/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/full",
"version": "0.0.1-beta.1",
"version": "0.0.1-beta.2",
"description": "all loader in one",
"type": "module",
"main": "./dist/index.min.js",
Expand Down

0 comments on commit 540f207

Please sign in to comment.