Skip to content

Commit

Permalink
build: semantic-release
Browse files Browse the repository at this point in the history
Co-authored-by: Rostislav Simonik <[email protected]>
  • Loading branch information
mightyiam and rostislav-simonik committed Aug 12, 2023
1 parent db4ee63 commit a60157a
Show file tree
Hide file tree
Showing 5 changed files with 7,719 additions and 1,651 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ on:
push: {}

jobs:
publish:
needs: ci
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: navikt/github-app-token-generator@v1
id: get-token
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
persist-credentials: false # for later steps to use a different authentication
- uses: actions/setup-node@v3
with:
node-version: latest
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# The ci-matrix job ends up as multiple jobs and therefore as multiple checks.
# Each check's name ends up with the node version appended.
# If we were to use those checks as required checks, we would have to occasionally bump them.
Expand Down
1 change: 1 addition & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends: semantic-release-standard
10 changes: 0 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
# Change Log

All notable changes to this project will be documented in the
[`standard` CHANGELOG](https://github.com/standard/standard/blob/master/CHANGELOG.md).

This project's
[commit log](https://github.com/standard/eslint-config-standard/commits/master) is
also quite readable.

This project adheres to [Semantic Versioning](http://semver.org/).
Loading

0 comments on commit a60157a

Please sign in to comment.