diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index de6127ac..a42fddab 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,35 +1,35 @@ name: Build and release docs on: - release: - types: [published] + release: + types: [published] jobs: - build_deploy: - runs-on: ubuntu-18.04 - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. - with: - persist-credentials: false + build_deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + with: + persist-credentials: false - - name: Install SSH Client 🔑 - uses: webfactory/ssh-agent@v0.4.1 - with: - ssh-private-key: ${{ secrets.DEPLOY_KEY }} - - uses: actions/setup-node@v2-beta - with: - node-version: '12' + - name: Install SSH Client 🔑 + uses: webfactory/ssh-agent@v0.4.1 + with: + ssh-private-key: ${{ secrets.DEPLOY_KEY }} + - uses: actions/setup-node@v2-beta + with: + node-version: 16 - - name: Install and build the documentation🔧 - run: | - npm install - npm link - npm run docs:refresh + - name: Install and build the documentation🔧 + run: | + npm install + npm link + npm run docs:refresh - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@3.7.1 - with: - BRANCH: docs - FOLDER: docs - SSH: true + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + BRANCH: docs + FOLDER: docs + SSH: true diff --git a/.github/workflows/npm.yaml b/.github/workflows/npm.yaml index 1254be62..fced77ba 100644 --- a/.github/workflows/npm.yaml +++ b/.github/workflows/npm.yaml @@ -1,19 +1,19 @@ -name: Build and release package +name: Build and release package on: - release: - types: [ published ] + release: + types: [published] jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: 'https://registry.npmjs.org' - - run: npm install - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 16 + registry-url: "https://registry.npmjs.org" + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}