v0.1.57 #65
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: build and publish | |
| # This action will trigger on every published release | |
| on: | |
| release: | |
| types: | |
| - published | |
| permissions: | |
| id-token: write # Required for OIDC trusted publishing | |
| contents: read | |
| # Job will run on a ubuntu instance | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout package repo | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - name: setup node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '22.14.0' | |
| check-latest: true | |
| - name: install npm version with trusted publishing support | |
| run: npm install -g npm@11.5.1 | |
| - name: install dependencies | |
| run: npm install | |
| - name: build component library | |
| run: npm run build | |
| - name: publish to npm | |
| working-directory: ./build | |
| run: npm publish --access public |