-
-
Notifications
You must be signed in to change notification settings - Fork 3
npm install test 워크플로우 구현 #656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c0d10f8
feat: add npm-install-test workflow
RiaOh 5225a9c
chore: add permissions
RiaOh d10e660
delete: delete permissions
RiaOh bbae4d8
chore: change node version 20 to lts
RiaOh cde6704
chore: change actions/checkout version 4 to 6
RiaOh ccab92b
chore: change workflow name
RiaOh 886ad09
chore: change npm to bun & remove Next.js step
RiaOh b3735b2
feat: add install-tests in integration workflow
RiaOh 1841324
fix: change bunx to bun
RiaOh 12b1780
fix: change bun run build to bun run build:lib
RiaOh a651e05
fix: remove import React
RiaOh bfe094d
chore: change bunx to bun to make same with vite
RiaOh 3c69ba6
chore: remove CRA case
RiaOh d42c88c
chore: add Box component in index.ts
RiaOh 2966741
chore: remove comment
RiaOh 3588eb6
refactor: set auth token to environment variable
DaleSeo 02aa1e6
ci: stop using release branches for tagging workflow
DaleSeo c4c08bf
build(deps-dev): bump eslint-plugin-testing-library
dependabot[bot] 3c18eac
build(deps-dev): bump the storybook group with 6 updates
dependabot[bot] e7739f2
build(deps-dev): bump eslint-plugin-storybook from 10.1.9 to 10.1.11
dependabot[bot] 51ad6d4
chroe: add dependabot group for eslint-plugin-storybook and @vitest/c…
hyoseong1994 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,37 @@ | ||
| name: Tagging 🏷️ | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: [main] | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "Version to release (e.g., 1.2.3)" | ||
| bump: | ||
| description: "Version bump type (patch/minor/major)" | ||
| required: true | ||
| type: string | ||
| type: choice | ||
| default: patch | ||
| options: | ||
| - patch | ||
| - minor | ||
| - major | ||
|
|
||
| jobs: | ||
| create-tag: | ||
| if: | | ||
| github.event_name == 'workflow_dispatch' || | ||
| (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Determine version | ||
| id: version | ||
| run: | | ||
| if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then | ||
| VERSION="${{ inputs.version }}" | ||
| else | ||
| VERSION=$(echo "${{ github.event.pull_request.head.ref }}" | sed 's|^release/||') | ||
| fi | ||
| if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
| echo "Invalid version format: $VERSION" | ||
| exit 1 | ||
| fi | ||
| echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
|
|
||
| - uses: fregante/setup-git-user@v2 | ||
|
|
||
| - name: Bump version and push tag | ||
| run: | | ||
| npm version ${{ steps.version.outputs.version }} | ||
| git push --follow-tags | ||
| - name: Bump version | ||
| run: npm version ${{ inputs.bump }} | ||
|
|
||
| - name: Push changes | ||
| run: git push --follow-tags | ||
|
|
||
| - name: Draft release | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: gh release create v${{ steps.version.outputs.version }} --draft --generate-notes | ||
| run: | | ||
| NEW_VERSION="v$(jq -r '.version' package.json)" | ||
| gh release create $NEW_VERSION --draft --generate-notes |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium