Skip to content

Commit

Permalink
Call release script straight from prerelease workflow with additional…
Browse files Browse the repository at this point in the history
… options
  • Loading branch information
harriplappalainen committed Jul 4, 2023
1 parent 6a578de commit 181699d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ jobs:
- name: install dependencies
run: yarn

- name: build design tokens package
run: yarn build
working-directory: ./packages/design-tokens

- name: build core package
run: yarn build
working-directory: ./packages/core

- name: build react package
run: yarn build
working-directory: ./packages/react

- name: release npm packages
run: yarn run testdrive --dist-tag ${{ github.event.inputs.prerelease_stage }}
run: yarn run release --dist-tag ${{ github.event.inputs.prerelease_stage }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"build:react": "lerna run --scope hds-react build",
"build:site": "lerna run --scope site build",
"clean": "lerna clean --yes && rimraf node_modules/ packages/core/lib packages/core/storybook-static packages/react/lib packages/react/storybook-static packages/design-tokens/lib site/.cache site/public",
"prerelease": "yarn run lerna publish from-package --yes —dist-tag $npm_config_stage",
"testdrive": "echo \"Hello, \"",
"start:core": "lerna run --scope hds-core start",
"start:react": "lerna run --scope hds-react start",
"release": "lerna publish from-package --yes",
Expand Down

0 comments on commit 181699d

Please sign in to comment.