Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Corb3nik committed Jan 3, 2025
1 parent 7f8f772 commit d8aadb5
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 829 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish

on:
push:
branches:
- 'main'

env:
NODE_VERSION: 20
PNPM_VERSION: 9

jobs:
publish-js:
runs-on: ubuntu-latest
timeout-minutes: 5

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Install
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm publish --access public
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "caido-dev",
"version": "1.0.0",
"name": "@caido-community/dev",
"version": "0.0.1",
"description": "Development tools for building Caido plugins",
"type": "module",
"bin": {
"caido-dev": "./dist/cli.js"
},
"files": [
"dist"
],
"scripts": {
"dev": "tsx src/cli.ts",
"typecheck": "tsc --noEmit",
Expand Down Expand Up @@ -34,9 +37,6 @@
},
"devDependencies": {
"@types/node": "22.10.2",
"@typescript-eslint/eslint-plugin": "8.19.0",
"@typescript-eslint/parser": "8.19.0",
"eslint": "9.17.0",
"prettier": "3.4.2",
"tsup": "8.3.5",
"tsx": "4.19.2",
Expand Down
Loading

0 comments on commit d8aadb5

Please sign in to comment.