Skip to content

Commit

Permalink
Mr Crabs I have an idea
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhsmith committed Dec 30, 2024
1 parent 2d0be65 commit 9263524
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 42 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-gh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy to GitHub 🚀

on:
release:
types: [created]

jobs:
deploy-github:
permissions: write-all
runs-on: ubuntu-latest
environment: Publish
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: yarn install
- run: yarn build --print-label
- run: yarn test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"
23 changes: 23 additions & 0 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy to NPM 🚀

on:
release:
types: [created]

jobs:
deploy-npm:
permissions: write-all
runs-on: ubuntu-latest
environment: Publish
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
- run: yarn install
- run: yarn build --print-label
- run: yarn test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
40 changes: 0 additions & 40 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build/Test Package
name: Build/Test Package 🔧

on: [push]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gavinhsmith/shutdown",
"version": "1.0.4",
"version": "1.0.5",
"description": "A simple shutdown handler for Node.",
"type": "module",
"main": "./dist/index.js",
Expand Down

0 comments on commit 9263524

Please sign in to comment.