Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 5c7a2ce

Browse files
committed
feat: publish package on release
1 parent 098ee13 commit 5c7a2ce

3 files changed

Lines changed: 56 additions & 28 deletions

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build-npm:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: oven-sh/setup-bun@v2
14+
with:
15+
registry-url: 'https://npm.pkg.github.com'
16+
scope: '@minecraft-essentials'
17+
- name: Install dependencies
18+
run: bun install
19+
- name: Pack contents
20+
run: bun pm pack
21+
- name: Publish package
22+
run: bun publish ./*.tgz
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bun.lock

Lines changed: 27 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tauri-plugin-minecraft-essentails-api",
3-
"version": "0.1.0",
3+
"version": "0.0.1",
44
"author": "You",
55
"description": "",
66
"type": "module",
@@ -22,12 +22,12 @@
2222
"pretest": "bun run build"
2323
},
2424
"dependencies": {
25-
"@tauri-apps/api": ">=2.0.0-beta.6"
25+
"@tauri-apps/api": "^2.5.0"
2626
},
2727
"devDependencies": {
2828
"@rollup/plugin-typescript": "^11.1.6",
29-
"rollup": "^4.9.6",
30-
"typescript": "^5.3.3",
31-
"tslib": "^2.6.2"
29+
"rollup": "^4.44.0",
30+
"typescript": "^5.8.3",
31+
"tslib": "^2.8.1"
3232
}
3333
}

0 commit comments

Comments
 (0)