forked from worktile/ngx-gantt
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #7 from cmm-va/#add-wpm
fix: 新增发布 next 命令,使用wpm
- Loading branch information
Showing
3 changed files
with
22 additions
and
11 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 |
---|---|---|
|
@@ -32,10 +32,6 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Authenticate | ||
run: | | ||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PUBLISH_PACKAGE_TOKEN }}" > ~/.npmrc | ||
echo "@atinc:registry=https://npm.pkg.github.com/" >> ~/.npmrc | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -49,17 +45,15 @@ jobs: | |
git config user.email [email protected] | ||
npm run pub | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Publish-next | ||
if: startsWith(github.head_ref, 'release-auto-next-v') | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git config user.email [email protected] | ||
npm run pub-next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Unset authenticate | ||
run: rm ~/.npmrc | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Read package.json | ||
id: read-version | ||
uses: notiz-dev/github-action-json-property@release | ||
|
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,12 @@ | ||
module.exports = { | ||
allowBranch: ['master', 'release-auto-*'], | ||
bumpFiles: ['package.json', 'package-lock.json', 'packages/gantt/package.json'], | ||
skip: { | ||
confirm: true | ||
}, | ||
tagPrefix: '', | ||
hooks: { | ||
prepublish: 'npm run build', | ||
postpublish: 'npm run pub-only' | ||
} | ||
}; |
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