Skip to content

Commit 9af5bc3

Browse files
authored
revert: restore manual release workflow (#9)
* feat: add custom styling and release automation - Implement custom CSS injection and URL rewriting to allow users to style PDFs and fix cross-environment links. - Add release-please GitHub Action to automate the release process and enable secure NPM publishing. * improvement: Remove npm auth from yarn configuration - Remove npmAlwaysAuth and npmAuthToken from .yarnrc.yml to improve security by avoiding explicit token references in configuration. - Update yarn.lock and install state to ensure the dependency tree is consistent with the new configuration. * revert: automated release-please workflow - Reverts the commit that implemented release-please-action to simplify the release process. - Removes the automated release-please workflow and replaces it with a manual version-check publish script. - Restores manual version management in package.json to provide more direct control over the release cycle.
1 parent e48ccaa commit 9af5bc3

3 files changed

Lines changed: 38 additions & 46 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on every push to main
7+
8+
permissions:
9+
contents: write
10+
id-token: write # Required for NPM Trusted Publishing
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Install dependencies
25+
run: yarn install
26+
27+
- name: Build project
28+
run: yarn build
29+
30+
- name: Publish to NPM (Trusted Publishing)
31+
# It will only publish if the version in package.json is new
32+
run: |
33+
if npm view . version | grep -q $(node -p "require('./package.json').version"); then
34+
echo "Version already exists on NPM. Skipping publish."
35+
else
36+
npm publish --provenance --access public
37+
fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusaurus-docs-to-pdf",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "A command-line tool to convert Docusaurus documentation sites to a single PDF file.",
55
"main": "main.js",
66
"bin": "./dist/main.js",

0 commit comments

Comments
 (0)