Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ on:
push:
branches: [main]

permissions:
id-token: write

jobs:
Build:
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.PLUGINS_NPM_TOKEN }}
FORCE_PUBLISH: ${{ contains(github.event.head_commit.message, '[force-publish]') }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -21,7 +24,6 @@ jobs:
with:
node-version: 16.x
registry-url: "https://registry.npmjs.org"
scope: "@standardnotes"

- name: Enable Corepack (Yarn)
run: corepack enable
Expand Down Expand Up @@ -51,5 +53,10 @@ jobs:
- name: Release
run: yarn run release

- name: Force Publish
if: ${{ env.FORCE_PUBLISH == 'true' }}
run: yarn run publish:force

- name: Publish
if: ${{ env.FORCE_PUBLISH != 'true' }}
run: yarn run publish
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build": "yarn workspaces foreach --verbose --interlaced -pt --topological-dev --jobs 10 run build",
"clean": "lerna run clean",
"release": "lerna version --conventional-commits --yes -m \"chore(release): publish\"",
"publish": "lerna publish from-git --yes --no-verify-access --loglevel verbose --registry https://registry.npmjs.org",
"publish": "lerna publish from-git --yes --no-verify-access --loglevel verbose",
"publish:force": "lerna publish from-git --yes --no-verify-access --loglevel verbose --ignore sn-excalidraw --force-publish",
"version": "yarn install --no-immutable && git add yarn.lock",
"postversion": "./scripts/push-tags-one-by-one.sh",
"dev:reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock && yarn install",
Expand Down
2 changes: 1 addition & 1 deletion packages/com.sncommunity.bold-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.7.7",
"description": "A simple and peaceful rich editor that helps you write and think clearly.",
"main": "dist/dist.js",
"author": "Standard Notes Retired.",
"author": "Standard Notes Retired",
"sn": {
"name": "Bold Editor",
"content_type": "SN|Component",
Expand Down
2 changes: 1 addition & 1 deletion packages/com.sncommunity.markdown-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"version": "1.7.8",
"main": "dist/dist.js",
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"description": "A Markdown editor with dynamic split-pane preview.",
"scripts": {
"lint": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
Expand Down
2 changes: 1 addition & 1 deletion packages/com.sncommunity.markdown-math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "grunt",
"test": "echo \"Error: no test specified\" && exit 0"
},
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"sn": {
"name": "Markdown Math",
"content_type": "SN|Component",
Expand Down
2 changes: 1 addition & 1 deletion packages/com.sncommunity.markdown-visual/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@standardnotes/markdown-visual",
"version": "1.4.11",
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"description": "A WYSIWYG-style Markdown editor that renders Markdown in preview-mode while you type without displaying any syntax.",
"keywords": [
"Standard Notes",
Expand Down
2 changes: 1 addition & 1 deletion packages/com.sncommunity.minimal-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"version": "1.4.8",
"description": "A minimal Markdown editor with live rendering and in-text search via Ctrl/Cmd + F",
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"main": "dist/dist.js",
"sn": {
"name": "Minimal Markdown",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "A fully featured Markdown editor that supports live preview, a styling toolbar, and split pane support.",
"main": "dist/dist.js",
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"license": "AGPL-3.0",
"sn": {
"name": "Markdown",
Expand Down
2 changes: 1 addition & 1 deletion packages/org.standardnotes.code-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "Syntax highlighting and convenient keyboard shortcuts for over 120 programming languages. Ideal for code snippets and procedures.",
"main": "dist/main.js",
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"license": "AGPL-3.0",
"scripts": {
"start": "http-server . --cors -p8001 & webpack --progress --config webpack.dev.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/org.standardnotes.plus-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "From highlighting to custom font sizes and colors, to tables and lists, this editor is perfect for crafting any document.",
"main": "dist/dist.js",
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"scripts": {
"skip:lint": "eslint --ext .js .",
"lint:fix": "eslint --ext .js . --fix",
Expand Down
2 changes: 1 addition & 1 deletion packages/org.standardnotes.simple-task-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"access": "public"
},
"author": "Standard Notes Community.",
"author": "Standard Notes Community",
"main": "dist/dist.js",
"description": "A great way to manage short-term and long-term to-do's. You can mark tasks as completed, change their order, and edit the text naturally in place.",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/org.standardnotes.token-vault/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@standardnotes/authenticator",
"version": "2.4.8",
"main": "dist/dist.js",
"author": "Standard Notes.",
"author": "Standard Notes",
"publishConfig": {
"access": "public"
},
Expand Down