Skip to content

Commit

Permalink
fix, fuse build and publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrin committed Feb 3, 2022
1 parent 64c6f66 commit 687b7c9
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,7 @@ env:
CI: true

jobs:
build:
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm i
- run: npm run build
- uses: actions/upload-artifact@v2
with:
name: build
path: ./dist

publish:
needs: build
environment: production
runs-on: ubuntu-latest
steps:
Expand All @@ -36,9 +19,8 @@ jobs:
with:
node-version: 12.x
registry-url: https://registry.npmjs.org/
- uses: actions/download-artifact@v2
with:
name: build
- run: npm i
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 687b7c9

Please sign in to comment.