Skip to content

Commit

Permalink
update github npm publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
VoloshchenkoAl committed Jul 25, 2020
1 parent e513c6b commit ae483d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package
name: Publish npm package

on:
release:
types: [created]

jobs:
build:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run lint

publish-npm:
needs: build
Expand All @@ -27,7 +25,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm build
- run: npm run build
- run: npm publish
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": "circular-revealer",
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/index.js",
"module": "dist/index.es.js",
"files": [
Expand Down

0 comments on commit ae483d2

Please sign in to comment.