diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index b79279d..a5fcfbf 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -22,7 +22,7 @@ title: 'Bug: ' Link to code example: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 9cc69c2..6183486 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,7 +2,7 @@ Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. - Before making a pull request, please read our contributing guidelines in `README.md`. + Before making a pull request, read our contributing guidelines in `README.md`. --> # Title diff --git a/.github/release.yml b/.github/release.yml index b51a835..57c3161 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -10,7 +10,7 @@ changelog: labels: - feat - - title: 🐛 Bugfixes + - title: 🐛 Bug Fixes labels: - fix @@ -28,7 +28,7 @@ changelog: labels: - test - - title: ⬆️ Dependency updates + - title: ⬆️ Dependency Updates labels: - dependencies diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 6bf944d..5d27780 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -2,10 +2,10 @@ on: workflow_dispatch: inputs: type: - description: 'Select the type of version bump' + description: Select the type of version bump required: true type: choice - default: 'patch' + default: patch options: - patch - minor @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest env: - GH_TOKEN: ${{ secrets.GH_PAT }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Set up checkout @@ -37,28 +37,23 @@ jobs: - name: Set up node_modules run: npm ci - - name: Set up SHA - run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV - - - name: Set up old version - run: echo "OLD_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV + - name: Set up environment variables + run: | + echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV + echo "OLD_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV - - name: Set up github + - name: Bump run: | git config --global user.name 'github-actions' git config --global user.email 'actions@github.com' git switch -c release-${{ inputs.type }}-${{ env.SHORT_SHA }} - - - name: Bump - run: | npm version ${{ inputs.type }} -m "release(${{ inputs.type }}): v%s" - - name: Set up new version + - name: Set up environment variables run: echo "NEW_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV - name: Push - run: | - git push --set-upstream origin release-${{ inputs.type }}-${{ env.SHORT_SHA }} + run: git push --set-upstream origin release-${{ inputs.type }}-${{ env.SHORT_SHA }} - name: Create pull request run: | diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index dccabce..05b06cd 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -8,10 +8,6 @@ jobs: labeler: runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - name: Labeler uses: jimschubert/labeler-action@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 37863e9..77de294 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,14 +9,6 @@ on: jobs: lint: - # strategy: - # matrix: - # type: - # - eslint - # - prettier - # - editorconfig - # - markdownlint - runs-on: ubuntu-latest steps: @@ -40,6 +32,3 @@ jobs: - name: Lint run: npm run lint - - # - name: Lint ${{ matrix.type }} - # run: npm run lint-${{ matrix.type }} --if-present diff --git a/.github/workflows/sync-client.yml b/.github/workflows/sync-client.yml index 4acee49..439bb7f 100644 --- a/.github/workflows/sync-client.yml +++ b/.github/workflows/sync-client.yml @@ -12,7 +12,7 @@ jobs: - name: Set up checkout uses: actions/checkout@v4 - - name: Set up SHA + - name: Set up environment variables run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV - name: Sync @@ -24,4 +24,3 @@ jobs: ASSIGNEES: ${{ github.repository_owner }} COMMIT_PREFIX: ${{ github.workflow }}${{':'}} PR_BODY: check out [`${{ env.SHORT_SHA }}`](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) @${{ github.repository_owner }} :hatching_chick:. -# See https://docs.github.com/ko/actions/writing-workflows/choosing-what-your-workflow-does/contexts#github-context for more detailed context