Skip to content

Commit

Permalink
chore: release v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinTh committed Sep 12, 2024
1 parent 14cf25f commit fb21cc3
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 9 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/cd-docker-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,42 @@ on:

workflow_dispatch:
inputs:

release_version:
description: 'Release version (no v prefix)'
required: true
default: '0.0.0'

publish_lib:
description: 'Publish lib to npm'
required: true
type: boolean
default: true

publish_cli:
description: 'Publish CLI to npm'
required: true
type: boolean
default: true

release_docker:
description: 'Release Docker images'
required: true
type: boolean
default: true

permissions:
contents: read
packages: write

jobs:
publish-lib:
name: Publish lib to npm
if: ${{ github.event.inputs.publish_lib || github.event_name == 'push' }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
defaults:
run:
working-directory: packages/lib
Expand All @@ -32,20 +55,25 @@ jobs:
node-version: 22
corepack: true
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm i
working-directory: ./

- name: Publish lib to npm
run: pnpm publish --access public
run: pnpm publish --access public --no-git-checks
env:
NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-cli:
name: Publish CLI to npm
if: ${{ github.event.inputs.publish_cli || github.event_name == 'push' }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
defaults:
run:
working-directory: packages/cli
Expand All @@ -58,19 +86,21 @@ jobs:
node-version: 22
corepack: true
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm i
working-directory: ./

- name: Publish lib to npm
run: pnpm publish --access public
run: pnpm publish --access public --no-git-checks
env:
NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

docker-release:
name: Release Docker images
if: ${{ github.event.inputs.release_docker || github.event_name == 'push'}}
runs-on: ubuntu-latest
steps:
- name: Get release version from tag
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enclosed/root",
"version": "0.0.0",
"version": "1.5.0",
"description": "Send private and secure note",
"packageManager": "[email protected]",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@enclosed/app-client",
"type": "module",
"version": "0.0.0",
"version": "1.5.0",
"packageManager": "[email protected]",
"description": "Enclosed frontend client",
"author": "Corentin Thomasset <[email protected]> (https://corentin.tech)",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@enclosed/app-server",
"type": "module",
"version": "0.0.0",
"version": "1.5.0",
"packageManager": "[email protected]",
"description": "Enclosed backend server",
"author": "Corentin Thomasset <[email protected]> (https://corentin.tech)",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@enclosed/cli",
"type": "module",
"version": "0.0.4",
"version": "1.5.0",
"packageManager": "[email protected]",
"description": "Enclosed cli to create secure notes.",
"author": "Corentin Thomasset <[email protected]> (https://corentin.tech)",
Expand Down
2 changes: 1 addition & 1 deletion packages/deploy-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enclosed/deploy-cloudflare",
"version": "0.0.0",
"version": "1.5.0",
"description": "Deploy scripts for Cloudflare Pages",
"packageManager": "[email protected]",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enclosed/docs",
"version": "0.0.0",
"version": "1.5.0",
"type": "module",
"packageManager": "[email protected]",
"description": "Documentation website for Enclosed.",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@enclosed/lib",
"type": "module",
"version": "0.1.0",
"version": "1.5.0",
"packageManager": "[email protected]",
"description": "Enclosed lib to create secure notes.",
"author": "Corentin Thomasset <[email protected]> (https://corentin.tech)",
Expand Down

0 comments on commit fb21cc3

Please sign in to comment.