Skip to content

Commit

Permalink
update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey Tsui committed Jan 1, 2024
1 parent 7f938bc commit 82d968d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -23,13 +24,18 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Run yarn bump and generate changelog
run: yarn bump
- name: Build
run: yarn build

- name: Commit and Push changes
- name: Set git credentials
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add -A
git commit -m "Bump version and update changelog"
git push
git remote set-url origin "https://[email protected]/ZhiShuYun/HubFrontend"
env:
REPO_PAT: ${{ secrets.REPO_PAT }}

- name: Publish
run: yarn publish -- --token "$NPM_TOKEN"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"change": "npx beachball change --no-commit",
"verify": "npx beachball check",
"bump": "npx beachball bump",
"publish": "npx beachball publish --access public",
"prepare": "husky install"
},
"dependencies": {
Expand Down

0 comments on commit 82d968d

Please sign in to comment.