Skip to content

Commit

Permalink
add gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisRodriguezLD committed Sep 20, 2024
1 parent d2cf5b3 commit c34cc2f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: publish
on:
push:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js/18
uses: actions/setup-node@v4
with:
node-version: 18
- name: install dependencies
run: npm i
- name: prettier
run: npm run prettier
- name: build
run: npm run build
- name: verify
run: npm run verify

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: verify
on:
- pull_request
- push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js/18
uses: actions/setup-node@v4
with:
node-version: 18
- name: install dependencies
run: npm i
- name: prettier
run: npm run prettier
- name: build
run: npm run build
- name: verify
run: npm run verify
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"dist"
],
"scripts": {
"prettier": "prettier --check ./",
"build": "strapi-plugin build",
"test:ts:back": "run -T tsc -p server/tsconfig.json",
"test:ts:front": "run -T tsc -p admin/tsconfig.json",
Expand Down

0 comments on commit c34cc2f

Please sign in to comment.