Skip to content

Commit

Permalink
Add github workflow to publish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Soc Sieng committed May 11, 2020
1 parent 55bb1b2 commit 33ff7fb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: publish

on:
release:
types: [created]

jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm build
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: https://npm.pkg.github.com/
scope: '@google-pay'
- name: publish
run: |
cd src/react
npm publish
cd ../src/web-component
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 33ff7fb

Please sign in to comment.