chore: prepare for npm publishing as @gkucmierz/bitcoin-logo
This commit is contained in:
22
.gitea/workflows/npm-publish.yaml
Normal file
22
.gitea/workflows/npm-publish.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: npm-publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
||||
Reference in New Issue
Block a user