Skip to content

Commit

Permalink
fixing gh@actions
Browse files Browse the repository at this point in the history
  • Loading branch information
abranhe committed Jan 3, 2020
1 parent 628d0dc commit b16e8bc
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,13 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm install
- name: Build
run: |
npm run build
npm pack
mv *.tgz package.tgz
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: artifact
path: package.tgz

publish-npm:
name: Publish to npm
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v1
with:
name: artifact
- name: Extract package from artifact
run: tar xf artifact/package.tgz --strip 1
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
Expand All @@ -50,12 +33,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v1
with:
name: artifact
- name: Extract package from artifact
run: tar xf artifact/package.tgz --strip 1
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
Expand Down

0 comments on commit b16e8bc

Please sign in to comment.