Skip to content

Commit 2230739

Browse files
committed
バージョンにforkをつける
1 parent 6c18922 commit 2230739

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- name: Set version number to environment variable
2828
run: |
2929
node -p -e '`RELEASED_PACKAGE_VERSION=v${require("./package.json").version}`' >> $GITHUB_ENV
30-
node -p -e '`RELEASED_MAJOR_VERSION=v${require("./package.json").version}`' | awk -F. '{print $1}' >> $GITHUB_ENV
3130
- run: yarn install
3231
- run: yarn run build
3332
env:
3433
NODE_ENV: "production"
3534
- name: Publish package
36-
run: yarn publish --access public
35+
run: |
36+
yarn publish --access public
37+
npm dist-tag add @yuito-it/qiita-cli@${RELEASED_PACKAGE_VERSION} fork
3738
env:
3839
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)