generated from atls-lab/template
-
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.
chore: restore previous github flows
- Loading branch information
Showing
3 changed files
with
22 additions
and
35 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
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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
npmAuthToken: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
|
@@ -20,24 +17,24 @@ jobs: | |
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 19 | ||
node-version: '18.13' | ||
|
||
- name: Install | ||
run: yarn install | ||
|
||
- name: Npm Publish | ||
run: | | ||
yarn version apply --all | ||
yarn workspaces changed foreach --worktree --verbose --topological --no-private npm publish --access public | ||
yarn workspaces changed foreach --verbose --topological --no-private npm publish --access public | ||
env: | ||
YARN_NPM_AUTH_TOKEN: ${{ secrets.npmAuthToken }} | ||
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
uses: EndBug/add-and-commit@v7 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
with: | ||
default_author: github_actions | ||
author_name: github-actions | ||
author_email: [email protected] | ||
message: 'chore(common): publish' | ||
add: '["*.lock", "*.json", "*.yml"]' | ||
branch: master |
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
name: Version | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run: | ||
name: Version | ||
runs-on: ubuntu-latest | ||
|
||
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -17,24 +20,24 @@ jobs: | |
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '19' | ||
node-version: '18.13' | ||
|
||
- name: Install | ||
run: yarn install | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
|
||
- name: Version | ||
run: yarn workspaces changed foreach --worktree --no-private --verbose version patch --deferred | ||
run: yarn workspaces changed foreach --no-private --verbose version patch --deferred | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
uses: EndBug/add-and-commit@v7 | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
with: | ||
author_name: github-actions | ||
author_email: [email protected] | ||
message: 'chore(common): versions' | ||
add: '*.yml' | ||
branch: master |