ai-or-die 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -82,18 +82,17 @@ jobs:
|
|
|
82
82
|
NODE_AUTH_TOKEN: ""
|
|
83
83
|
|
|
84
84
|
- name: Publish to GitHub Packages
|
|
85
|
+
continue-on-error: true
|
|
85
86
|
run: |
|
|
86
|
-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
|
|
87
|
-
echo "@animeshkundu:registry=https://npm.pkg.github.com" >> ~/.npmrc
|
|
88
|
-
# Temporarily scope the package for GitHub Packages
|
|
89
87
|
node -e "
|
|
90
88
|
const pkg = require('./package.json');
|
|
91
89
|
pkg.name = '@animeshkundu/ai-or-die';
|
|
92
90
|
require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
|
|
93
91
|
"
|
|
94
|
-
npm publish --access public
|
|
95
|
-
# Restore original package.json
|
|
92
|
+
npm publish --registry https://npm.pkg.github.com --access public
|
|
96
93
|
git checkout -- package.json
|
|
94
|
+
env:
|
|
95
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
97
96
|
|
|
98
97
|
build-binaries:
|
|
99
98
|
name: Build ${{ matrix.artifact }}
|