Merge pull request #138 from flagship-io/cd-migration #40
Workflow file for this run
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: NPM CD | |
| on: | |
| push: | |
| tags: | |
| - "5.[0-9]+.[0-9]+" | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Set Yarn Version | |
| run: corepack prepare yarn@4.7.0 --activate | |
| - name: Use Node.js 23.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '23.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: "yarn" | |
| cache-dependency-path: yarn.lock | |
| - name: Install modules | |
| run: yarn install | |
| - run: yarn test | |
| - run: yarn build | |
| - run: npm publish --provenance --access public |