Skip to content

Release 2.4.0

Release 2.4.0 #25

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Setup Node πŸ“¦
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm ci
- name: Build πŸ”¨
run: npm run build
- name: Upload artifacts 🧩
uses: actions/upload-artifact@v4
with:
name: dist-files
path: dist/
release:
name: Release
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Download artifacts 🧩
uses: actions/download-artifact@v4
with:
name: dist-files
path: dist/
- name: Create release draft πŸ•ŠοΈ
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
dist/PdNaja.esm.js
dist/PdNaja.esm.js.map
publishPublic:
name: Publish (public)
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Download artifacts 🧩
uses: actions/download-artifact@v4
with:
name: dist-files
path: dist/
- name: Setup Node πŸ“¦
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Publish release πŸ•ŠοΈ
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
publishPrivate:
name: Publish (private)
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Download artifacts 🧩
uses: actions/download-artifact@v4
with:
name: dist-files
path: dist/
- name: Setup Node πŸ“¦
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://npm.pkg.github.com'
- name: Publish release πŸ•ŠοΈ
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}