diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..c9dcf44cfe --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release +on: + push: + branches: [main, development] + +jobs: + release: + name: Release + runs-on: ubuntu-18.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependencies + run: npm install @semantic-release/changelog @semantic-release/git @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/exec @semantic-release/git semantic-release/release-notes-generator + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release \ No newline at end of file diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000000..7329ff4c74 --- /dev/null +++ b/.releaserc @@ -0,0 +1,45 @@ +{ + "branches": ["+([0-9])?(.{+([0-9]),x}).x", "main", "next"], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md", + "changelogTitle": "# Semantic Versioning Changelog" + } + ], + [ + "@semantic-release/npm", + { + "npmPublish": false, + "tarballDir": "dist" + } + ], + [ + "@semantic-release/exec", + { + "prepareCmd": "./prepare-release.sh ${nextRelease.version}" + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "CHANGELOG.md" + ] + } + ], + [ + "@semantic-release/github", + { + "assets": [ + { + "path": "dist/**" + } + ] + } + ] + ] +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000..34532593a3 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "gossamer", + "version": "1.0.0", + "description": "