Merge changes from v2.7.4-next.1 into main (#169) #80
This file contains 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
name: 🚀 CI/CD Workflow | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] # default PR types | |
branches: [main, next] | |
paths: ["src/**/*", "package*.json"] | |
push: | |
branches: [main, next] | |
paths: ["src/**/*", "package*.json"] | |
# This workflow can be manually triggered | |
workflow_dispatch: | |
jobs: | |
test: | |
name: 🧪 Test | |
uses: ./.github/workflows/test.yaml | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
permissions: | |
contents: write # to checkout the code and merge bot-PRs | |
pull-requests: write # to add coverage reports to the PR | |
statuses: write # to update commit status | |
release: | |
name: 📦 Release | |
needs: test # run job if event=push and tests passed | |
if: github.event_name == 'push' && needs.test.outputs.success == 'true' | |
runs-on: ubuntu-latest | |
permissions: | |
attestations: write # to generate artifact attestations for dist assets | |
contents: write # to create a release | |
id-token: write # to enable use of OIDC for npm provenance | |
issues: write # to be able to comment on released issues | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Install Dependencies | |
run: npm ci --include=dev | |
- name: Build Dist Assets | |
run: npm run build | |
- name: Run Semantic-Release | |
id: semantic-release | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
extra_plugins: | | |
@semantic-release/changelog@6.0.3 | |
@semantic-release/git@10.0.1 | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH_PUBLIC_ORG_SCOPE }} | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} |