diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..b96e6cc7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: yarn install + - run: yarn run release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 00000000..04aa723e --- /dev/null +++ b/.release-it.json @@ -0,0 +1,22 @@ +{ + "git": { + "commitMessage": "chore: release ${version}" + }, + "github": { + "release": true + }, + "npm": { + "publish": false + }, + "plugins": { + "@release-it/bumper": { + "out": [ + "package.json", + { + "file": "publiccode.yml", + "path": "softwareVersion" + } + ] + } + } +} diff --git a/publiccode.yml b/publiccode.yml index 189ec8eb..5b968bf8 100644 --- a/publiccode.yml +++ b/publiccode.yml @@ -53,7 +53,7 @@ maintenance: name: publiccode editor platforms: - web -releaseDate: '2020-08-20' +releaseDate: '2019-07-08' softwareType: standalone/web -softwareVersion: v1.4.2 +softwareVersion: v1.2 url: 'https://github.com/italia/publiccode-editor'