Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add github workflow to auto-publish
- Loading branch information
1 parent
2607a6b
commit f9b3cac
Showing
2 changed files
with
49 additions
and
0 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,48 @@ | ||
name: npm-publish | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
npm-publish: | ||
name: npm-publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Publish eslint-config | ||
uses: pascalgn/npm-publish-action@1.3.5 | ||
with: | ||
commit_pattern: "^chore\(release\)" | ||
workspace: './packages/eslint-config' | ||
publish_command: 'npm' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Publish eslint-config-typescript | ||
uses: pascalgn/npm-publish-action@1.3.5 | ||
with: | ||
commit_pattern: "^chore\(release\)" | ||
workspace: './packages/eslint-config-typescript' | ||
publish_command: 'npm' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Publish eslint-config-typescript-react | ||
uses: pascalgn/npm-publish-action@1.3.5 | ||
with: | ||
commit_pattern: "^chore\(release\)" | ||
workspace: './packages/eslint-config-typescript-react' | ||
publish_command: 'npm' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Publish prettier-config | ||
uses: pascalgn/npm-publish-action@1.3.5 | ||
with: | ||
commit_pattern: "^chore\(release\)" | ||
workspace: './packages/prettier-config' | ||
publish_command: 'npm' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
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 @@ | ||
.github/workflows/npm-publish.yml |