Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: merge staging to master #757

Merged
merged 1 commit into from
Jul 4, 2024
Merged
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
50 changes: 28 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,37 @@ jobs:
name: cobertura-coverage
path: tmp/coverage/cobertura-coverage.json

build-prerelease:
name: "Build / Pre-release"
runs-on: ubuntu-latest
needs:
- check-lint
- check-build
- check-test
if: >
startsWith(github.ref, 'refs/tags/v') &&
contains(github.ref, '-')
steps:
- uses: actions/checkout@v4
- name: Run deployment
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ./.npmrc
echo 'Publishing library prerelease'
npm install
npm publish --tag prerelease --access public
rm -f ./.npmrc

build-pull:
name: "Build / Pull Request"
runs-on: ubuntu-latest
needs:
- check-lint
- check-build
- check-test
if: github.ref == 'refs/heads/staging'
if: >
github.ref == 'refs/heads/staging' ||
(startsWith(github.ref, 'refs/tags/v') &&
!contains(github.ref, '-'))
steps:
- uses: actions/checkout@v4
- name: Create pull request
Expand All @@ -121,34 +144,17 @@ jobs:
--body-file - \
--repo "$GITHUB_REPOSITORY"

build-prerelease:
name: "Build / Pre-release"
runs-on: ubuntu-latest
needs:
- check-lint
- check-build
- check-test
if: >
startsWith(github.ref, 'refs/tags/v') &&
contains(github.ref, '-')
steps:
- uses: actions/checkout@v4
- name: Run deployment
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ./.npmrc
echo 'Publishing library prerelease'
npm install
npm publish --tag prerelease --access public
rm -f ./.npmrc

integration-merge:
name: "Integration / Merge"
runs-on: ubuntu-latest
concurrency:
group: integration-merge
cancel-in-progress: true
needs: build-pull
if: github.ref == 'refs/heads/staging'
if: >
github.ref == 'refs/heads/staging' ||
(startsWith(github.ref, 'refs/tags/v') &&
!contains(github.ref, '-'))
steps:
- uses: actions/checkout@v4
with:
Expand Down