v1.1.1 #2
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 to npm | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '22' # specify node version 22 | |
| registry-url: 'https://registry.npmjs.org/' | |
| # Install dependencies | |
| - name: Install dependencies | |
| run: npm install | |
| # Build the project | |
| - name: Build the project | |
| run: npm run build | |
| # Testung the project | |
| - name: Testing the project | |
| run: npm run test | |
| - name: Publish package | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: npm publish |