Skip to content

Commit

Permalink
Merge pull request #10 from jdalrymple/more-pipeline-tweaks
Browse files Browse the repository at this point in the history
Perform fetch on tags
  • Loading branch information
jdalrymple committed Dec 19, 2023
2 parents 1f753e6 + 1c694c9 commit aa57a61
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,36 @@ jobs:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

release-dry-run:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
needs: [lint, format, build, test]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 100
- name: Fetch Git tags
shell: bash
run: git fetch --tags --force
- uses: ./.github/actions/setup
- name: Retrieve saved build files
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: dist
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_USERNAME: ${{ github.actor }}
run: |
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
git config --global user.email "${GH_USERNAME}@users.noreply.github.com"
git config --global user.name "${GH_USERNAME}"
yarn release --dry-run
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'skip ci')
Expand All @@ -70,7 +100,10 @@ jobs:
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-tags: true
fetch-depth: 100
- name: Fetch Git tags
shell: bash
run: git fetch --tags --force
- uses: ./.github/actions/setup
- name: Retrieve saved build files
uses: actions/download-artifact@v3
Expand Down

0 comments on commit aa57a61

Please sign in to comment.