Skip to content

Commit

Permalink
chore: run e2e tests aginst the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Oct 22, 2024
1 parent 63e2e96 commit d36fbe2
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/push-preid-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ on:
push:
branches:
# Change this to your branch name where "example-preid" corresponds to the preid you want your changes released on
- feat/example-preid-branch/main
- feat/next-15/main

jobs:
e2e:
secrets: inherit
uses: ./.github/workflows/callable-release-verification.yml
parse-preid:
name: Parse preid from branch
runs-on: ubuntu-latest
env:
BRANCH: ${{ github.ref_name }}
steps:
- id: output_preid
run: echo "preid=$(echo $BRANCH | tr -cd '[:alnum:]_\-/.' | cut -d \/ -f 2)" >> $GITHUB_OUTPUT
outputs:
preid: ${{ steps.output_preid.outputs.preid }}
# parse-preid:
# name: Parse preid from branch
# runs-on: ubuntu-latest
# env:
# BRANCH: ${{ github.ref_name }}
# steps:
# - id: output_preid
# run: echo "preid=$(echo $BRANCH | tr -cd '[:alnum:]_\-/.' | cut -d \/ -f 2)" >> $GITHUB_OUTPUT
# outputs:
# preid: ${{ steps.output_preid.outputs.preid }}

preid-release:
needs:
- e2e
- parse-preid
secrets: inherit
uses: ./.github/workflows/callable-npm-publish-preid.yml
# The preid should be detected from the branch name recommending feat/{PREID}/whatever as branch naming pattern
# if your branch doesn't follow this pattern, you can override it here for your branch.
with:
preid: ${{ needs.parse-preid.outputs.preid }}
# preid-release:
# needs:
# - e2e
# - parse-preid
# secrets: inherit
# uses: ./.github/workflows/callable-npm-publish-preid.yml
# # The preid should be detected from the branch name recommending feat/{PREID}/whatever as branch naming pattern
# # if your branch doesn't follow this pattern, you can override it here for your branch.
# with:
# preid: ${{ needs.parse-preid.outputs.preid }}

0 comments on commit d36fbe2

Please sign in to comment.