Skip to content

Commit

Permalink
ci: use prerelease branch
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Jan 24, 2024
1 parent 4cc164c commit 32dad2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ permissions:

jobs:
release:
# Run job only on main branch
if: github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/main'
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/prerelease' #|| github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
Expand Down Expand Up @@ -39,7 +38,6 @@ jobs:
run: |
cp README.md dist/design-angular-kit/README.md
cp .npmrc dist/design-angular-kit/.npmrc
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
workflow_run:
workflows: ["Publish release"]
branches:
- main
# - main
- prerelease
types:
- completed

Expand Down
3 changes: 3 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ module.exports = {
branches: [
{
name: "main",
},
{
name: "prerelease",
prerelease: true
},
],
Expand Down

0 comments on commit 32dad2c

Please sign in to comment.