Skip to content

v0.0.5

v0.0.5 #1

Workflow file for this run

name: Publish Package to npmjs
# change branch name to re-enable pipeline
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: npm ci
run: |
npm ci
- name: Build esm package
run: |
npm run rollup
- name: Deploy to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: |
dist