Skip to content

Commit

Permalink
Fix publishing; publish 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Oct 15, 2023
1 parent b3924c7 commit 018c718
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:

- name: 🛑 Check Tag
run: |
dnf install -y jq
pkg_version="v$(jq -r .version < package.json)"
if [[ "${{ github.ref_name }}" != "$pkg_version" ]]; then
echo "Tag ${{ github.ref_name }} does not match package.json version $pkg_version" >&2
Expand All @@ -40,20 +41,12 @@ jobs:
version: 8
run_install: false

- name: 🔨 Build
run: |
cmake -B build
cmake --build build
- name: 🚀 Upload Artifact
uses: actions/upload-artifact@v3
with:
name: server-arch
path: build/server

- name: 🔨 Build
run: "pnpm install"

- name: 🛠️ Prepare Prebuilds
run: pnpm pkg-prebuilds-copy --baseDir build/Release --source venmic-addon.node --name=venmic-addon --strip --napi_version=7

- name: 🛒 Publish
run: pnpm publish
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.vscode
build
prebuilds
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
.github
server
tests
build

.gitignore
.clang-*
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@vencord/venmic",
"private": false,
"license": "MIT",
"author": {
"name": "Curve",
Expand Down Expand Up @@ -31,5 +32,9 @@
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.51.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}

0 comments on commit 018c718

Please sign in to comment.