Merge pull request #6 from SpineEventEngine/improve-readme #6
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: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| publish: | |
| name: Publish Package to NPM | |
| environment: gh-actions-environment | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # Read repository code | |
| id-token: write # Generate OIDC token for npm authentication | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build validation package | |
| run: npm run build --workspace=@spine-event-engine/validation-ts | |
| - name: Perform publishing to NPM registry | |
| # The version is still a `snapshot`, so NPM requires it to be tagged accordingly. | |
| run: npm publish --workspace=@spine-event-engine/validation-ts --tag snapshot |