diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8985780ac..a93b22492 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,10 +9,10 @@ jobs: gh-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: '14.x' - name: Add key to allow access to repository env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml index 7d9545af7..3519cc5c7 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/latest.yml @@ -10,10 +10,10 @@ jobs: os: [ubuntu-18.04] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@master - - uses: actions/setup-node@master + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: '14.x' - name: Install deps run: npm install --ignore-scripts - name: Build nodegui diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml deleted file mode 100644 index a72f190f3..000000000 --- a/.github/workflows/prebuild.yml +++ /dev/null @@ -1,38 +0,0 @@ -on: - repository_dispatch: - types: [on-demand-build] - release: - types: [created] -jobs: - build: - strategy: - fail-fast: false - matrix: - os: [ubuntu-18.04, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.ref }} - # - uses: actions/setup-node@master - # with: - # node-version: '13.x' - # - name: Install ubuntu deps - # if: contains(matrix.os, 'ubuntu') - # run: sudo apt install mesa-common-dev libglu1-mesa-dev - # - name: Install deps - # run: npm install - # env: - # SKIP_BUILD: 1 - # - name: Change version if master - # if: contains(github.event.client_payload.tag, '0.0.0-latest-master') - # run: npm --no-git-tag-version version 0.0.0-latest-master - # - name: Prebuild binary - # run: npx prebuild --all --backend=cmake-js --strip --runtime=napi --include-regex="\.[n,e,l][a-z]*$" - # - name: Release - # uses: softprops/action-gh-release@master - # with: - # files: prebuilds/@nodegui/*.tar.gz - # tag_name: ${{ github.event.release.tag_name || github.event.client_payload.tag }} - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b12b68eac..75a73f9d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,7 @@ on: jobs: publish-npm-package: + if: contains(github.event.release.tag_name, 'v0.0.0-latest-master') == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 596a9c199..281c497c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,10 +9,10 @@ jobs: os: [ubuntu-18.04, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@master - - uses: actions/setup-node@master + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: '14.x' - name: Install ubuntu deps if: contains(matrix.os, 'ubuntu') run: sudo apt install mesa-common-dev libglu1-mesa-dev