Skip to content

Commit

Permalink
chore: construct workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
surelle-ha committed Nov 1, 2024
1 parent cbcb3f0 commit e866beb
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name: Registry

on:
push:
branches:
- main
- ci/*
- feature/*
- test/*
push:
branches:
- main
- ci/*
- feature/*
- test/*

jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v1
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: "@surelle-ha"
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com/'
scope: 'surelle-ha'

- run: npm install --legacy-peer-deps
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm install --legacy-peer-deps
- run: npm run build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e866beb

Please sign in to comment.