Skip to content

Commit

Permalink
ci: add internal publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGrochoska authored and felipejfc committed Feb 7, 2024
1 parent 76133d2 commit fa2bed2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/internal-publishing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build binaries

on:
push:
tags:
- '*'

jobs:
package:
runs-on: ubuntu-latest
steps:

- name: Checkout repo
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16

- run: npm install -g npm-cli-login
- run: npm-cli-login login -u "${{ secrets.ARTIFACTORY_USER }}" -p "${{ secrets.ARTIFACTORY_PASS }}" -e "tools-team@tfgco.com" -r "https://artifactory.tfgco.com/artifactory/api/npm/npm-local" -s @wls

- name: Update dependencies to match internal releases
run: |
cd pitaya-sharp/NPitaya
sed -i.bak 's/"org\.nuget\.google\.protobuf": "[^"]*",/"com\.wildlifestudios\.nuget\.google\.protobuf": "3.23.1",/' package.json && rm package.json.bak
- name: Publish to artifactory
run: cd pitaya-sharp/NPitaya && npm publish
11 changes: 9 additions & 2 deletions pitaya-sharp/NPitaya/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
"version": "1.0.1",
"unity": "2021.3",
"description": "Native pitaya server module",
"keywords": ["pitaya", "pomelo", "cluster", "server", "package", "search"],
"keywords": [
"pitaya",
"pomelo",
"cluster",
"server",
"package",
"search"
],
"category": "Server",
"dependencies": {
"org.nuget.google.protobuf": "3.24.3",
"org.nuget.system.runtime.compilerservices.unsafe": "4.5.3"
}
}
}

0 comments on commit fa2bed2

Please sign in to comment.