Skip to content
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
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
pull_request:
branches:
- develop

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install Yarn
run: corepack enable

- name: Install Dependencies
run: yarn install --immutable

- name: Build
run: yarn build

- name: Test
run: yarn test:unit
25 changes: 0 additions & 25 deletions .github/workflows/notify-discord-of-github-release.yml

This file was deleted.

31 changes: 13 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,29 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Version packages PR
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js 22
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 22

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install a specific Yarn version
- name: Install Yarn
run: corepack enable

- name: Install Dependencies
run: yarn install

- name: Build packages
run: yarn build
- name: Install Dependencies
run: yarn install --immutable

- name: Create Release Pull Request
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: yarn run version
publish: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
62 changes: 0 additions & 62 deletions .github/workflows/trigger-release.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build": "medusa plugin:build && npm run generate-types",
"dev": "medusa plugin:develop",
"prepublishOnly": "npm run build",
"version": "changeset version",
"release": "yarn build && changeset publish",
"test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
"test:integration:providers": "TEST_TYPE=integration:providers NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit",
Expand Down
Loading