ai-or-die 0.1.8 → 0.1.10
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.
|
@@ -81,19 +81,25 @@ jobs:
|
|
|
81
81
|
env:
|
|
82
82
|
NODE_AUTH_TOKEN: ""
|
|
83
83
|
|
|
84
|
+
- name: Setup Node.js (GitHub Packages)
|
|
85
|
+
uses: actions/setup-node@v4
|
|
86
|
+
with:
|
|
87
|
+
node-version: '22'
|
|
88
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
89
|
+
scope: '@animeshkundu'
|
|
90
|
+
|
|
84
91
|
- name: Publish to GitHub Packages
|
|
92
|
+
continue-on-error: true
|
|
85
93
|
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
94
|
node -e "
|
|
90
95
|
const pkg = require('./package.json');
|
|
91
96
|
pkg.name = '@animeshkundu/ai-or-die';
|
|
92
97
|
require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
|
|
93
98
|
"
|
|
94
99
|
npm publish --access public
|
|
95
|
-
# Restore original package.json
|
|
96
100
|
git checkout -- package.json
|
|
101
|
+
env:
|
|
102
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
97
103
|
|
|
98
104
|
build-binaries:
|
|
99
105
|
name: Build ${{ matrix.artifact }}
|