Skip to content

Commit 15ceb25

Browse files
committed
chore: add Github actions workflow
1 parent 4e727ae commit 15ceb25

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.changeset/real-trainers-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rixw/strapi-client": patch
3+
---
4+
5+
Added Github workflow file and NPM keywords

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js 18.x
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18.x
22+
23+
- name: Install Dependencies
24+
run: yarn
25+
26+
- name: Create Release and Publish to npm
27+
id: changesets
28+
uses: changesets/action@v1
29+
with:
30+
publish: yarn publish-packages
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/strapi-client/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,11 @@
4747
},
4848
"publishConfig": {
4949
"access": "public"
50-
}
50+
},
51+
"keywords": [
52+
"strapi",
53+
"client",
54+
"sdk",
55+
"rest"
56+
]
5157
}

0 commit comments

Comments
 (0)