Skip to content

Commit

Permalink
Do not publish to npm or the website from Azure DevOps
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpoulter committed Apr 6, 2024
1 parent bfd7637 commit 3a8fe61
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions azure-pipelines.yml
Expand Up @@ -67,18 +67,18 @@ jobs:
artifactName: 'index.umd.min.js'
PathtoPublish: '$(System.DefaultWorkingDirectory)/index.umd.min.js'

- script: npm run semantic-release
displayName: 'Publish to npm'
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/beta')))
env:
GH_TOKEN: $(GITHUB_TOKEN)
NPM_TOKEN: $(Npm.Token)
TWITTER_ACCESS_TOKEN_SECRET: $(TWITTER_ACCESS_TOKEN_SECRET)
TWITTER_CONSUMER_SECRET: $(TWITTER_CONSUMER_SECRET)
# - script: npm run semantic-release
# displayName: 'Publish to npm'
# condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/beta')))
# env:
# GH_TOKEN: $(GITHUB_TOKEN)
# NPM_TOKEN: $(Npm.Token)
# TWITTER_ACCESS_TOKEN_SECRET: $(TWITTER_ACCESS_TOKEN_SECRET)
# TWITTER_CONSUMER_SECRET: $(TWITTER_CONSUMER_SECRET)

- script: npm run publish-website
displayName: 'Update website'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
NPM_TOKEN: $(Npm.Token)
# - script: npm run publish-website
# displayName: 'Update website'
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
# env:
# GITHUB_TOKEN: $(GITHUB_TOKEN)
# NPM_TOKEN: $(Npm.Token)

0 comments on commit 3a8fe61

Please sign in to comment.