Skip to content

Commit

Permalink
fix: workflows for npm release (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGorilla authored Jan 18, 2022
1 parent 93d6bfc commit 89d4416
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/npm-release.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,20 @@ jobs:
release_name: ${{ needs.tag.outputs.tag_name }}
draft: false
prerelease: false

publish:
name: Build and publish
runs-on: ubuntu-latest
needs: tag
if: needs.tag.outputs.tag_name && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@defi-wonderland/keep3r-cli-job-boilerplate",
"version": "1.0.1",
"version": "1.0.2",
"description": "Keep3r CLI Job Boilerplate",
"keywords": [
"keep3r",
Expand Down

0 comments on commit 89d4416

Please sign in to comment.