2205 npm trusted publisher (#217) #218
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 to NPM | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "main" | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: write | |
| pull-requests: write | |
| packages: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Installing dependencies | |
| run: cd frontend && npm ci && pwd | |
| - name: Create Release Pull Request or Publish | |
| id: changesets | |
| uses: changesets/action@e0538e686673de0265c8a3e2904b8c76beaa43fd | |
| with: | |
| publish: npm run packages:publish | |
| cwd: /home/runner/work/pydantic-forms-ui/pydantic-forms-ui/frontend | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |