Skip to content

Commit 804b57f

Browse files
- enhancement: updated packages, docs, added github actions
1 parent ae610d7 commit 804b57f

File tree

7 files changed

+1492
-1075
lines changed

7 files changed

+1492
-1075
lines changed

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ISSUE_TEMPLATE

.github/workflows/npm.publish.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
name: Publish to NPM
3+
4+
on:
5+
release:
6+
types: [ created ]
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
ref: ${{ github.event.release.target_commitish }}
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
registry-url: "https://registry.npmjs.org"
19+
- run: npm ci
20+
- run: git config --global user.name "GitHub CD bot"
21+
- run: git config --global user.email "[email protected]"
22+
- run: npm test
23+
- run: npm version ${{ github.event.release.tag_name }}
24+
- run: npm publish --access public
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
27+
- run: git push
28+
env:
29+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
on:
2+
push:
3+
tags:
4+
- "v[0-9]+.[0-9]+.[0-9]+"
5+
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [ 16.x ]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
cache: 'npm'
21+
- run: npm ci --ignore-scripts
22+
- run: npm run build --if-present
23+
24+
release_git:
25+
needs: build
26+
name: Create Release
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v2
31+
- name: Create Release
32+
id: create_release
33+
uses: actions/create-release@v1
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
with:
37+
tag_name: ${{ github.ref }}
38+
release_name: Release ${{ github.ref }}
39+
draft: false
40+
prerelease: false
41+
42+
publish:
43+
needs: release_git
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v2
47+
with:
48+
ref: ${{ github.event.release.target_commitish }}
49+
- uses: actions/setup-node@v2
50+
with:
51+
node-version: 16
52+
registry-url: "https://registry.npmjs.org"
53+
- run: npm publish --access public
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
/node_modules/
77
*.env
88
/.githooks/
9-
/.github/
109
/.extjs-link.conf.json

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ implementation for the [conjoon](https://github.com/conjoon/conjoon) application
66
```
77
npm install --save-dev @conjoon/extjs-app-webmail
88
```
9+
If you want to develop with this package, run the `build:dev`-script afterwards:
10+
```bash
11+
npm run build:dev
12+
```
13+
Testing environment will then be available via
914

10-
## Post-Install
11-
[@coon-js/extjs-link](https://npmjs.org/coon-js/extjs-link) will start once the package was installed and guide you
12-
through the process of creating symlinks to an existing ExtJS sdk installation.
13-
This is only required if you want to run the tests (`./tests`), as [Siesta](https//npmjs.org/siesta-lite) relies on
14-
an existing ExtJS installation.
15+
```bash
16+
npm test
17+
```
1518

1619
## Usage
1720
When using this package without a backend implementation, make sure your app uses the [extjs-dev-webmailsim](https://github.com/conjoon/extjs-dev-webmailsim) package of the [conjoon](https://github.com/conjoon) project.

0 commit comments

Comments
 (0)