diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 68d3480..2a2674f 100755 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -6,12 +6,6 @@ on: - master - main -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: write - pages: write - id-token: write - jobs: deploy: permissions: @@ -21,12 +15,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 - - name: Setup NodeJS - uses: actions/setup-node@v2-beta + - name: Setup pnpm + uses: pnpm/action-setup@v2 with: - node-version: '16' + version: 'latest' + run_install: false - name: Cache dependencies uses: actions/cache@v3 @@ -41,7 +41,7 @@ jobs: ${{ runner.os }}-node- - name: Install Dependencies - run: npm install -g pnpm && pnpm install + run: pnpm install - name: Build Library and static website run: pnpm run publish diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e4b4c3..8bd8cde 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,8 +15,6 @@ on: branches: - master - main - tags: - - 'v*.*.*' paths-ignore: - 'README.md' - 'wiki/**' @@ -31,16 +29,25 @@ concurrency: jobs: Plugins: + permissions: + contents: write + pages: write + id-token: write runs-on: ubuntu-latest - steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 - - name: Setup NodeJS - uses: actions/setup-node@v2-beta + - name: Setup pnpm + uses: pnpm/action-setup@v2 with: - node-version: '16' + version: 'latest' + run_install: false - name: Cache dependencies uses: actions/cache@v3 @@ -55,7 +62,7 @@ jobs: ${{ runner.os }}-node- - name: Install Dependencies - run: npm install -g pnpm && pnpm install + run: pnpm install - name: Build Plugins run: pnpm run build