Skip to content

Commit

Permalink
use yarn instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
haruaki07 committed Jan 9, 2021
1 parent 62707df commit d1a4e47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
- run: yarn install --frozen-lockfile
- run: yarn version --new-version "${GITHUB_REF:11}" --no-git-tag-version
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lib"
],
"scripts": {
"build": "npm run build:icon",
"build": "yarn build:icon",
"build:icon": "node src/build.js",
"prepublishOnly": "npm run build"
"prepublishOnly": "yarn build"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d1a4e47

Please sign in to comment.