Skip to content

Merge pull request #58 from RainyXeon/dev #26

Merge pull request #58 from RainyXeon/dev

Merge pull request #58 from RainyXeon/dev #26

Workflow file for this run

name: npm publish
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: "npm"
- name: "Install latest npm version"
run: npm install -g npm
- name: "print version"
run: npm --v
- name: "Install packages"
run: |
npm i
npm ci
- name: "Build packages"
run: npm run build
- name: "publish package"
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
provenance: true