Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Create push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
quisido committed Aug 7, 2021
1 parent 1cd06fb commit a7e4b38
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Push
jobs:
publish_github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'yarn'
check-latest: true
node-version: 'lts/*'
registry-url: 'https://npm.pkg.github.com'
- run: yarn
- run: yarn build
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish_npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'yarn'
check-latest: true
node-version: 'lts/*'
- run: yarn
- run: yarn build
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
on:
push:
branches: [main]

0 comments on commit a7e4b38

Please sign in to comment.