Skip to content

Commit

Permalink
feat: add github workflow to auto-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
john-d-pelingo committed Dec 1, 2020
1 parent 2607a6b commit f9b3cac
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/npm-publish.yml
@@ -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 }}
1 change: 1 addition & 0 deletions .prettierignore
@@ -0,0 +1 @@
.github/workflows/npm-publish.yml

0 comments on commit f9b3cac

Please sign in to comment.