Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/_init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Initialize build

on:
workflow_call:

outputs:
NODE_VERSION:
value: ${{ jobs.init.outputs.NODE_VERSION }}
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ on:
type: string
required: true

secrets:
SEMANTIC_RELEASE_NPM_TOKEN:
required: true
SEMANTIC_RELEASE_GH_TOKEN:
required: true

jobs:
test:
name: Release package
Expand All @@ -42,5 +36,5 @@ jobs:
- name: Run release
run: npm run release
env:
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISHER_TOKEN }}
6 changes: 2 additions & 4 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Development

on:
push:
branches: [ '*', '*/*', '**', '!master', '!main' ]
pull_request:
branches: [ master, main ]
branches: [master, main]

jobs:
init:
Expand All @@ -14,7 +12,7 @@ jobs:
test:
name: Test
uses: ./.github/workflows/_test.yml
needs: [ init ]
needs: [init]
with:
NODE_VERSION: ${{ needs.init.outputs.NODE_VERSION }}
NODE_CACHE_KEY: ${{ needs.init.outputs.NODE_CACHE_KEY }}
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
branches: [ master, main ]
branches: [master, main]

jobs:
init:
Expand All @@ -12,18 +12,16 @@ jobs:
test:
name: Test
uses: ./.github/workflows/_test.yml
needs: [ init ]
needs: [init]
with:
NODE_VERSION: ${{ needs.init.outputs.NODE_VERSION }}
NODE_CACHE_KEY: ${{ needs.init.outputs.NODE_CACHE_KEY }}

release:
name: Release
uses: ./.github/workflows/_release.yml
needs: [ init, test ]
needs: [init, test]
with:
NODE_VERSION: ${{ needs.init.outputs.NODE_VERSION }}
NODE_CACHE_KEY: ${{ needs.init.outputs.NODE_CACHE_KEY }}
secrets:
SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
SEMANTIC_RELEASE_GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
secrets: inherit
Loading