Skip to content

Commit

Permalink
Change default branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
sikanderakbarali committed Feb 19, 2024
1 parent 1907c26 commit 4d83989
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- 'master'
- 'main'
tags:
- 'v*'

Expand All @@ -19,7 +19,7 @@ jobs:
- run: npm ci
- run: npm run build:production
- name: Sonar analysis
uses: sonarsource/sonarcloud-github-action@master
uses: sonarsource/sonarcloud-github-action@main
with:
projectBaseDir: .
env:
Expand All @@ -28,7 +28,7 @@ jobs:
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# Only trigger if it's release tag.
- name: Create Release
if: ${{ endsWith(github.ref, 'master') == false }}
if: ${{ endsWith(github.ref, 'main') == false }}
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -39,7 +39,7 @@ jobs:
draft: false
prerelease: false
- name: Upload release asset
if: ${{ endsWith(github.ref, 'master') == false }}
if: ${{ endsWith(github.ref, 'main') == false }}
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
Expand All @@ -50,7 +50,7 @@ jobs:
asset_name: user-feedback-form.min.js
asset_content_type: text/javascript
- name: Publish npm package
if: ${{ endsWith(github.ref, 'master') == false }}
if: ${{ endsWith(github.ref, 'main') == false }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
--nodePackageSkipDevDependencies
--nodeAuditSkipDevDependencies
- name: Upload OWAPS results
uses: actions/upload-artifact@master
uses: actions/upload-artifact@main
with:
name: Depcheck report
path: ${{github.workspace}}/reports
- name: Sonar analysis
uses: sonarsource/sonarcloud-github-action@master
uses: sonarsource/sonarcloud-github-action@main
with:
projectBaseDir: .
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tasks:
github:
prebuilds:
# enable for the default branch (defaults to true)
master: true
main: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
Expand Down

0 comments on commit 4d83989

Please sign in to comment.