chore: update publish worfklow #18
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
| # Builds package and publishes it on npm. | |
| # Triggered on pushes to develop, master and release branches | |
| name: CD | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| - release-* | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| environment: upload | |
| permissions: | |
| id-token: write # Required by Akeyless | |
| contents: write # Allows semantic-release to create tags | |
| issues: write # Allows semantic-release to comment on issues | |
| pull-requests: write # Allows semantic-release to comment on PRs | |
| packages: read | |
| steps: | |
| - name: Check out branch | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Fetch all branches | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install modules | |
| run: npm ci --no-audit --ignore-scripts | |
| - name: Build package | |
| run: npm run build-package | |
| - name: Publish release | |
| run: npx --ignore-scripts [email protected] | |
| env: | |
| GH_TOKEN: ${{ github.token }} |