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

Commit 95c0677

Browse files
committed
feat: publish package on release
fixup: publish
1 parent 098ee13 commit 95c0677

4 files changed

Lines changed: 59 additions & 32 deletions

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
- name: Install dependencies
15+
run: bun install
16+
- name: Pack contents
17+
run: bun pm pack
18+
- name: Publish package
19+
run: bun publish ./*.tgz
20+
env:
21+
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@minecraft-essentials:registry=https://npm.pkg.github.com

bun.lock

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

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "tauri-plugin-minecraft-essentails-api",
3-
"version": "0.1.0",
3+
"version": "0.0.1",
44
"author": "You",
55
"description": "",
6+
"repository": "https://github.com/minecraft-essentials/tauri-plugin-minecraft-essentials",
67
"type": "module",
78
"types": "./dist-js/index.d.ts",
89
"main": "./dist-js/index.cjs",
@@ -22,12 +23,12 @@
2223
"pretest": "bun run build"
2324
},
2425
"dependencies": {
25-
"@tauri-apps/api": ">=2.0.0-beta.6"
26+
"@tauri-apps/api": "^2.5.0"
2627
},
2728
"devDependencies": {
2829
"@rollup/plugin-typescript": "^11.1.6",
29-
"rollup": "^4.9.6",
30-
"typescript": "^5.3.3",
31-
"tslib": "^2.6.2"
30+
"rollup": "^4.44.0",
31+
"typescript": "^5.8.3",
32+
"tslib": "^2.8.1"
3233
}
3334
}

0 commit comments

Comments
 (0)