ci: try switching to go-semantic-release
This commit is contained in:
parent
c7bce2ff23
commit
8e8ea8ce86
|
@ -18,32 +18,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 18.x
|
|
||||||
cache: 'npm'
|
|
||||||
- run: npm ci
|
|
||||||
- name: Setup Swagger
|
|
||||||
run: |
|
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest;
|
|
||||||
$HOME/go/bin/swag init -g main.go;
|
|
||||||
$HOME/go/bin/swag fmt;
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
mkdir app;
|
|
||||||
touch app/index.html
|
|
||||||
go build .;
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
uses: shimataro/ssh-key-action@v2
|
uses: shimataro/ssh-key-action@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ secrets.GITEA_SSH_KEY }}
|
key: ${{ secrets.GITEA_SSH_KEY }}
|
||||||
known_hosts: ${{ secrets.GITEA_KNOWN_HOST }}
|
known_hosts: ${{ secrets.GITEA_KNOWN_HOST }}
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: npm run semantic-release
|
uses: go-semantic-release/action@v1
|
||||||
env:
|
with:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
prerelease: true
|
||||||
- name: Setup tmate session
|
- name: Setup tmate session
|
||||||
uses: mxschmitt/action-tmate@v3
|
uses: mxschmitt/action-tmate@v3
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure() }}
|
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure() }}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"plugins": {
|
||||||
|
"commit-analyzer": {
|
||||||
|
"name": "default@^1.0.0"
|
||||||
|
},
|
||||||
|
"ci-condition": {
|
||||||
|
"name": "github"
|
||||||
|
},
|
||||||
|
"changelog-generator": {
|
||||||
|
"name": "default",
|
||||||
|
"options": {
|
||||||
|
"emojis": "true"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"provider": {
|
||||||
|
"name": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@lumeweb/portal",
|
|
||||||
"version": "0.1.0-develop.2",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "gitea@git.lumeweb.com:LumeWeb/portal.git"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
|
||||||
"@semantic-release/git": "^10.0.1",
|
|
||||||
"@semantic-release/npm": "^10.0.4",
|
|
||||||
"@semantic-release/release-notes-generator": "^11.0.4",
|
|
||||||
"semantic-release": "^21.0.5"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"semantic-release": "semantic-release"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue