chore(deps): update anchore/sbom-action action to v0.17.8 (#353) #55
This file contains 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 npm SDK package | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "src/sdk/javascript/**" | |
- ".github/workflows/release-npm-package.yml" | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@v2 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" # specify the version of Node.js you want to use | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
working-directory: "src/sdk/javascript/" | |
run: npm install | |
- name: Publish to npm | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
working-directory: "src/sdk/javascript/" | |
run: npm publish --access public --registry=https://registry.npmjs.org |