Skip to content

Update github/codeql-action digest to 96f518a (#332) #638

Update github/codeql-action digest to 96f518a (#332)

Update github/codeql-action digest to 96f518a (#332) #638

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- main
jobs:
publish-to-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
with:
persist-credentials: false
- name: Cache dependencies
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-
${{ runner.OS }}-
- name: Setup Node.js environment
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci
- name: Lint code
run: npm run lint
- name: Typescript
run: npm run tsc
- name: Build
run: npm run build
- name: Run tests
run: npm run test
- name: Publish to npm
run: npm run publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}