Configured Object.freeze and memoize to be excluded from side-effects rule #246
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 Beta Package | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| jobs: | |
| publishBeta: | |
| name: Publish Beta | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Dependency Review | |
| uses: actions/dependency-review-action@v4.3.3 | |
| with: | |
| allow-licenses: ${{ vars.ALLOW_LICENSES }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Check Label | |
| uses: checkdigit/github-actions/check-label@main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check Imports | |
| uses: checkdigit/github-actions/check-imports@main | |
| - name: Install Dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Audit Signatures | |
| run: npm audit signatures | |
| - name: Run Test | |
| run: npm run ci:test | |
| - name: Prepare Beta | |
| id: prepare-beta | |
| uses: checkdigit/github-actions/prepare-beta@main | |
| - name: Publish Beta | |
| run: npm publish --tag beta | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }} | |
| - name: Comment npm publish result | |
| uses: checkdigit/github-actions/comment-npm-publish@main | |
| with: | |
| betaPackage: ${{ steps.prepare-beta.outputs.betaPackage }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |