We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2758dd commit 955145dCopy full SHA for 955145d
.github/workflows/ci.yaml
@@ -194,12 +194,7 @@ jobs:
194
name: "npm-package"
195
path: release-npm-package
196
197
- - name:
198
- Set NPM_ENVIRONMENT
199
- # The way this logic works is it checks if the GitHub event is a push to the `main` branch
200
- # if so, we're in the staging environment (i.e. running in CI on merge into `main`)
201
- # otherwise it's running in CI on a PR event, meaning development environment
202
- # Source: https://kevsoft.net/2020/06/10/running-github-action-steps-and-jobs-only-on-push-to-master.html
+ - name: Set NPM_ENVIRONMENT
203
run: |
204
if [[ $GITHUB_EVENT_NAME == 'push' && $GITHUB_REF == 'refs/heads/master' ]]; then
205
echo "NPM_ENVIRONMENT=staging" >> "$GITHUB_ENV"
0 commit comments