diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 8181187..5ff5544 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -18,12 +18,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: Install dependencies run: npm ci @@ -48,7 +48,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: gh-pages diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff0eabb..02e028b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,11 +11,11 @@ jobs: environment: release steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 'lts/*' - name: Install dependencies @@ -24,4 +24,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release \ No newline at end of file + run: npx semantic-release diff --git a/.github/workflows/simulate-documentation.yml b/.github/workflows/simulate-documentation.yml new file mode 100644 index 0000000..9bcfb07 --- /dev/null +++ b/.github/workflows/simulate-documentation.yml @@ -0,0 +1,32 @@ +name: simulate documentation + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches-ignore: [ "main" ] + pull_request: + branches-ignore: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + name: build documentation + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm ci + + - name: Build documentation + run: npm run docs diff --git a/.github/workflows/simulate-release.yml b/.github/workflows/simulate-release.yml new file mode 100644 index 0000000..a992a50 --- /dev/null +++ b/.github/workflows/simulate-release.yml @@ -0,0 +1,24 @@ +name: simulate release +on: + push: + branches-ignore: ["main"] + pull_request: + branches-ignore: ["main"] +jobs: + release: + name: release + runs-on: ubuntu-latest + environment: release + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build && node prepare-package.js