diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 39befe6..0f0b83c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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}} diff --git a/package.json b/package.json index 9bc3fd3..4b99da2 100644 --- a/package.json +++ b/package.json @@ -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",