ci: update to replace compiler services SDK as well #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build binaries | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
internal-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: 'https://artifactory.tfgco.com/artifactory/api/npm/npm-local/' | |
- run: npm install -g npm-cli-login | |
- name: Set up .npmrc | |
run: | | |
echo @wls:registry=https://artifactory.tfgco.com/artifactory/api/npm/npm-local/ >> .npmrc | |
echo always-auth=true >> .npmrc | |
- 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.12.4"/' package.json && rm package.json.bak | |
sed -i.bak 's/"org\.nuget\.system\.runtime\.compilerservices\.unsafe": "[^"]*"/"com\.wildlifestudios\.nuget\.system\.runtime\.compilerservices\.unsafe": "4.5.3"/' package.json && rm package.json.bak | |
- name: Publish to artifactory | |
run: cd pitaya-sharp/NPitaya && npm publish --scope @wls --registry https://artifactory.tfgco.com/artifactory/api/npm/npm-local |