Skip to content

Commit

Permalink
Merge branch 'latest' into fix-installation
Browse files Browse the repository at this point in the history
  • Loading branch information
justjam2013 authored Nov 13, 2024
2 parents 035ed80 + baf347c commit 3815337
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: NPM publish beta

on:
release:
types: [published]

jobs:
build:
if: "github.event.release.prerelease"

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies and build 🔧
run: npm ci && npm run build

- name: Publish package on NPM - Beta 📦
run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
name: Publish to NPM
name: NPM publish latest

on:
release:
types: [published]

jobs:
build:
if: "!github.event.release.prerelease"

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies and build 🔧
run: npm ci && npm run build

- name: Publish package on NPM - Beta 📦
if: "!github.event.release.prerelease"
run: npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish package on NPM - Latest 📦
if: "github.event.release.prerelease"
run: npm publish --tag beta
run: npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3815337

Please sign in to comment.