Skip to content

Commit

Permalink
fix: alpha releases
Browse files Browse the repository at this point in the history
  • Loading branch information
thomvaill authored Oct 29, 2024
1 parent fedfd53 commit 3a083c4
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: release and publish to NPM
run: yarn lerna publish --yes --conventional-commits --conventional-prerelease --exact --create-release github
run: yarn lerna publish --yes --conventional-commits --conventional-prerelease --dist-tag alpha --exact --create-release github
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/post-release-e2e-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Post-release E2E alpha
on:
workflow_dispatch:

# Run after every release to NPM
push:
tags:
- v*

jobs:
e2e:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version:
- 20.x # Active LTS (https://github.com/nodejs/release)
- 18.x # Maintenance LTS
runs-on: ${{ matrix.os }}
steps:
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

- name: install
run: npm install -g log4brains@alpha

- name: test # TODO: test the preview add some assertions :-) For now we just check the exit codes. Or manage to run e2e-tests/e2e-launcher.js from here
run: |
log4brains --version
log4brains init --defaults
log4brains adr list
log4brains build
1 change: 1 addition & 0 deletions .github/workflows/post-release-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:

- name: test # TODO: test the preview add some assertions :-) For now we just check the exit codes. Or manage to run e2e-tests/e2e-launcher.js from here
run: |
log4brains --version
log4brains init --defaults
log4brains adr list
log4brains build
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.18-alpine3.14
FROM node:lts-alpine

ARG LOG4BRAINS_VERSION

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"command": {
"version": {
"message": "chore(release): publish %s",
"message": "chore(release): publish %s [skip ci]",
"allowBranch": "develop"
}
}
Expand Down

0 comments on commit 3a083c4

Please sign in to comment.