Skip to content

Commit

Permalink
Better github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rogervila committed Jan 19, 2020
1 parent 9250179 commit e7775f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ on:
types: [created]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 13
- run: npm install
- run: npm test

publish:
needs: build
runs-on: ubuntu-latest
Expand All @@ -15,7 +26,6 @@ jobs:
node-version: 13
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm test
- 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": "jsmarquee",
"version": "1.0.2",
"version": "1.0.3",
"description": "Javascript Marquee without dependencies",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e7775f1

Please sign in to comment.