Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

4.15.7

4.15.7 #16

Workflow file for this run

name: 'Publish to npm'
on:
release:
types: [published]
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Set up NodeJS LTS
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm i
- name: Build
run: npm run build
- name : Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
purge:
name: Purge jsdelivr cache
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- name: Set up NodeJS LTS
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Purge jsdelivr cache
uses: List-KR/jsdelivr-purge-npm@1.0.5
with:
package: '@list-kr/microshield'
disttag: 'latest'
needs: [publish]