Skip to content

Commit

Permalink
update node verison of test action
Browse files Browse the repository at this point in the history
  • Loading branch information
yxwzaxns committed Nov 26, 2021
1 parent cf98320 commit 062016e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: npm package publish
name: npm package publish

on:
release:
Expand All @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn test
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "./dist/index.js",
"scripts": {
"test": "./node_modules/.bin/mocha test/*.test.js",
"build": "./node_modules/.bin/babel --verbose -s inline src/ -d dist -D"
"build": "./node_modules/.bin/babel --verbose -s inline src/ -d dist -D",
"publish": "npm version patch;git push --follow-tags"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 062016e

Please sign in to comment.