fix: trigger #23
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
| name: Publish @aziontech/icons to NPM | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/icons/**' | |
| jobs: | |
| release: | |
| name: Semantic Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GIT_PKG }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Install workspace dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build icons package | |
| working-directory: packages/icons | |
| run: npm run build | |
| - name: Run Semantic Release | |
| working-directory: packages/icons | |
| run: npx semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GIT_PKG }} | |
| NPM_CONFIG_PROVENANCE: true |