Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielrufino committed Nov 26, 2024
1 parent 8c2bc44 commit 16cb6c7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
- pull_request
- push
- workflow_dispatch

jobs:
upload-action:
name: Upload action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v4
with:
name: action
path: action.yml
test:
name: Test
needs:
- upload-action
runs-on: ubuntu-latest
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
steps:
- uses: actions/checkout@v4
with:
repository: gabrielrufino/cube
- uses: actions/download-artifact@v4
- uses: ./action/
with:
registry-url: http://localhost:4873/
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Node package CD

inputs:
node-auth-token:
required: true
required: false
default: ''
node-version:
required: false
default: 20
registry-url:
required: false
default: https://registry.npmjs.org

runs:
using: composite
Expand All @@ -14,7 +18,7 @@ runs:
with:
node-version: ${{ inputs.node-version }}
cache: npm
registry-url: https://registry.npmjs.org
registry-url: ${{ inputs.registry-url }}
- id: scripts
run: |
scripts=$(cat package.json | jq -c '.scripts | keys')
Expand Down

0 comments on commit 16cb6c7

Please sign in to comment.