Merge pull request #1467 from sasjs/fix/replace-adm-zip #642
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
| # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
| name: SASjs CLI Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write # https://docs.npmjs.com/trusted-publishers | |
| contents: write # semantic-release needs to push tags and create releases | |
| issues: write # semantic-release comments on issues on failure | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Audit for vulnerabilities | |
| run: npm audit --omit=dev --audit-level=low | |
| - name: Semantic Release | |
| run: npx -p @semantic-release/exec -p semantic-release -- semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |