Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
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
58 changes: 45 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,56 @@ on:
- "*.*"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "18.x"

- run: yarn

- name: Typecheck
run: yarn types

- name: Test
run: yarn test

staging:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "18.x"

- run: yarn

- name: Build staging components
run: yarn build:components
env:
IS_STAGING: true

- uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks --cache-control "max-age=31536000,public,immutable"
env:
AWS_S3_BUCKET: "courier-push-provider-prod-couriercomponentsbucket-jqacxmhbzmwx"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: "./packages/components/dist"

release:
needs: test
runs-on: ubuntu-latest
env:
COURIER_WS_URL: ${{ secrets.COURIER_WS_URL }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v4
with:
Expand All @@ -28,14 +68,6 @@ jobs:

- run: yarn

- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Version packages
run: npx lerna version patch --yes --force-publish=*

- name: Publish to npm
run: yarn lerna:publish

Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/staging.yml

This file was deleted.

Loading