Skip to content

Commit

Permalink
Merge pull request #3 from barakamwakisha/cicd
Browse files Browse the repository at this point in the history
CI Enhancements
  • Loading branch information
barakamwakisha authored Feb 7, 2024
2 parents 5c22ef0 + b2c323b commit 675cb13
Show file tree
Hide file tree
Showing 6 changed files with 823 additions and 23 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release Package

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

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

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

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Vendure Mpesa Plugin

![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/barakamwakisha/vendure-mpesa-plugin/test.yml)
  ![NPM Version](https://img.shields.io/npm/v/vendure-mpesa-plugin)

Accept Mpesa payments on your Vendure store.

## Installation
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"prepare": "husky install",
"start": "rimraf __data__ && yarn ts-node e2e/dev-server.ts",
"build": "rimraf dist && tsc && copyfiles -u 1 'src/ui/**/*' dist",
"test": "vitest run"
"test": "vitest run",
"release": "yarn build && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vendure/admin-ui-plugin": "^2.1.6",
Expand Down
Loading

0 comments on commit 675cb13

Please sign in to comment.