0.1.4 #10
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: Release to NPMjs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| packages: write | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Remove package-lock.json and node_modules (npm bug workaround) | |
| run: | | |
| rm -rf package-lock.json node_modules | |
| - name: Install dependencies | |
| run: npm install --no-optional | |
| - name: Add platform-specific Rollup dependencies | |
| run: npm install --save-dev @rollup/rollup-linux-x64-gnu | |
| - name: Build | |
| run: npm run build | |
| - name: Install semantic-release plugins | |
| run: npm install -g semantic-release @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator | |
| - name: Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_CONFIG_ACCESS: public | |
| run: npx semantic-release |