Skip to content

Commit

Permalink
fix: Add semantic release.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Jun 9, 2021
1 parent 3dc5c77 commit 059040b
Show file tree
Hide file tree
Showing 3 changed files with 13,595 additions and 8,392 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,22 @@ jobs:
dist/built/geo.lean.js
dist/built/geo.lean.min.js
deploy-npm:
if: ${{ startswith(github.ref, 'refs/tags/') }}
# if: ${{ startswith(github.ref, 'refs/tags/') }}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 15.x
- run: npm ci
- name: Import artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: true
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit 059040b

Please sign in to comment.