chore(deps): update dependency @kong/kongponents to v9.14.29 (#475) #495
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
- alpha | |
- beta | |
jobs: | |
run-tests: | |
name: Tests | |
uses: ./.github/workflows/test.yaml | |
publish: | |
name: Build and Publish | |
needs: | |
- run-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.KONGPONENTS_BOT_PAT }} | |
- name: setup git | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Kong UI Bot" | |
- name: Create .npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }} | |
# Reference the env variable NPM_TOKEN here, not the secret | |
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Setup PNPM with Dependencies | |
uses: ./.github/actions/setup-pnpm-with-dependencies/ | |
with: | |
force-install: true | |
- name: Build | |
# Since we lint in the Tests job, we can just build the components here | |
run: pnpm build:components | |
# Since everything was successful, update the src/component-list.ts file to compare | |
# against in future runs. Since this file is modified here in the CI, it is written back | |
# to the repository via the `/package.json` file `@semantic-release/git` => `assets` config | |
- name: Update component-list.ts | |
run: pnpm update-component-list | |
# Since everything was successful, update the Vitest snapshot files to compare | |
# against for future runs. Since the snapshot files are modified here in the CI, they are written back | |
# to the repository via the `/package.json` file `@semantic-release/git` => `assets` config | |
- name: Update test snapshots | |
run: pnpm test -- --update | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@v4 | |
env: | |
# Since branch protections are on (pushing commits) you need to use a bot PAT | |
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }} | |