Skip to content

Commit

Permalink
fixed so only publish step sets environment
Browse files Browse the repository at this point in the history
  • Loading branch information
annesiri committed Oct 27, 2023
1 parent 4025f99 commit ef077a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
environment: production

strategy:
matrix:
Expand Down Expand Up @@ -34,6 +33,7 @@ jobs:
CI: true

publish:
environment: production
needs: build
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
Expand Down

0 comments on commit ef077a1

Please sign in to comment.