Skip to content

Commit

Permalink
Merge pull request #35 from svrooij/ci-build
Browse files Browse the repository at this point in the history
Ci build
  • Loading branch information
svrooij authored Nov 3, 2022
2 parents 770602c + 268d0ea commit cf8e90b
Show file tree
Hide file tree
Showing 32 changed files with 699 additions and 16,356 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
push:
branches:
- main
- ci-build
paths:
- '.github/workflows/generator.yml'
- 'generator/sonos-docs/src/**/*.ts'
- 'generator/sonos-docs/.releaserc'

pull_request:
branches:
Expand Down Expand Up @@ -50,24 +52,22 @@ jobs:
- name: Install depencencies
run: npm ci
- name: Semantic Release
run: npx semantic-release
#uses: cycjimmy/semantic-release-action@v2
uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
working_directory: generator/sonos-docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Did release?
id: did_release
run: '(test -f .new-version && echo "::set-output name=new_release_published::true" && echo "::set-output name=new_release_version::$(cat ./.new-version)") || echo "::set-output name=new_release_published::false"'
- name: Setup node for Github Registry
if: steps.did_release.outputs.new_release_published == 'true'
if: steps.semantic.outputs.new_release_published == 'true'
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: 'https://npm.pkg.github.com'
scope: 'svrooij'
- name: Publish To GitHub Package Registry
if: steps.did_release.outputs.new_release_published == 'true'
if: steps.semantic.outputs.new_release_published == 'true'
run: |
npm publish
env:
Expand Down
Loading

0 comments on commit cf8e90b

Please sign in to comment.