v21.1.0 #152
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: Publish packages | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Setup .npmrc file to publish to npm | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| # Ensure npm 11.5.1 or later is installed | |
| - name: Update npm | |
| run: npm install -g npm@latest | |
| - run: npm ci | |
| - run: npm run build:ci | |
| - name: Publish toolkit | |
| working-directory: dist/ngssm-toolkit | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish store | |
| working-directory: dist/ngssm-store | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish schematics | |
| working-directory: dist/ngssm-schematics | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish remote-data | |
| working-directory: dist/ngssm-remote-data | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish navigation | |
| working-directory: dist/ngssm-navigation | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish ag-grid | |
| working-directory: dist/ngssm-ag-grid | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish shell | |
| working-directory: dist/ngssm-shell | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish ace-editor | |
| working-directory: dist/ngssm-ace-editor | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish tree | |
| working-directory: dist/ngssm-tree | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish data | |
| working-directory: dist/ngssm-data | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose | |
| - name: Publish smusdi | |
| working-directory: dist/ngssm-smusdi | |
| run: | | |
| npm version ${{ github.event.release.tag_name }} | |
| npm publish --verbose |