Merge pull request #58 from RainyXeon/dev #26
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: 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 |