Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create release workflow #9

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: create release workflow
Nerivec committed Mar 14, 2025
commit 58686a9d8a64baeaf9c63e161a2941241bb71f55
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish package to npmjs

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
registry-url: 'https://registry.npmjs.org'

- run: npm ci

- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
530 changes: 265 additions & 265 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -17,7 +17,8 @@
"check": "biome check --write .",
"check:ci": "biome check .",
"clean": "rm -rf dist *.tsbuildinfo",
"dev:cli": "node dist/dev/cli.js"
"dev:cli": "node dist/dev/cli.js",
"prepack": "npm run clean && npm run build:prod"
},
"repository": {
"type": "git",
@@ -32,10 +33,10 @@
"homepage": "https://github.com/Nerivec/zigbee-on-host#readme",
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/node": "^22.13.4",
"@vitest/coverage-v8": "^3.0.6",
"@types/node": "^22.13.10",
"@vitest/coverage-v8": "^3.0.8",
"serialport": "^13.0.0",
"typescript": "^5.7.3",
"vitest": "^3.0.6"
"typescript": "^5.8.2",
"vitest": "^3.0.8"
}
}