chore: add config for workflow
This commit is contained in:
@@ -16,7 +16,6 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
registry-url: 'https://git.blassanto.me/api/packages/blas/npm/'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
@@ -27,6 +26,12 @@ jobs:
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Configure Gitea registry auth
|
||||
run: |
|
||||
echo "//git.blassanto.me/api/packages/blas/npm/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Publish to Gitea
|
||||
run: npm publish
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user