Skip to content

Commit

Permalink
Polish.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 11, 2023
1 parent 3152621 commit f88f3e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
if: ${{ github.event_name == 'workflow_dispatch' }}
name: Publish npm packages
runs-on: ubuntu-latest
env:
NPM_CHANNEL: latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
Expand All @@ -23,4 +21,6 @@ jobs:
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NIGHTLY: false
NPM_CHANNEL: latest
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
outputs:
publish:
${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ||
github.event_name == 'pull_request' }}
contains(github.ref, 'develop-') || github.ref == 'master' }}
nightly: ${{ steps.plan-step.outputs.nightly }}
npm-channel: ${{ steps.plan-step.outputs.npm-channel }}
env:
Expand All @@ -39,9 +39,7 @@ jobs:
- id: plan-step
run: bash ./scripts/release/planRelease.sh
env:
NIGHTLY:
${{ github.event_name == 'schedule' || contains(github.head_ref, 'develop-') ||
github.event_name == 'pull_request' }}
NIGHTLY: ${{ github.event_name != 'workflow_dispatch' }}

build:
strategy:
Expand Down Expand Up @@ -245,7 +243,7 @@ jobs:
artifactErrorsFailBuild: true
artifacts: artifacts/release/*
body: 'This nightly release corresponds to the commit [${{ github.sha }}].'
name: 'Nightly (${{ github.sha }})'
name: 'Nightly'
tag: 'nightly'
prerelease: true
replacesArtifacts: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-stub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
steps:
- run: 'echo "Not affected, skipping"'
coverage:
if: ${{ contains(github.head_ref, 'develop-') || endsWith(github.ref, 'master') }}
if: ${{ contains(github.ref, 'develop-') || endsWith(github.ref, 'master') }}
name: Code coverage
runs-on: ubuntu-latest
needs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- Makefile.toml
- rust-toolchain.toml
env:
WITH_COVERAGE: ${{ contains(github.head_ref, 'develop-') || endsWith(github.ref, 'master') }}
WITH_COVERAGE: ${{ contains(github.ref, 'develop-') || endsWith(github.ref, 'master') }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
path: ./report.txt
if-no-files-found: error
coverage:
if: ${{ contains(github.head_ref, 'develop-') || endsWith(github.ref, 'master') }}
if: ${{ contains(github.ref, 'develop-') || endsWith(github.ref, 'master') }}
name: Code coverage
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit f88f3e4

Please sign in to comment.