Skip to content

Commit

Permalink
Move the retrieval of package version from build to publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
rushby committed Oct 29, 2024
1 parent 3d5ab57 commit b03c0a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ jobs:
- name: Run tests
run: npm run test

- name: Extract Package Version
id: extract_version
run: echo "package_version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Upload build artifacts
id: upload_build
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -69,6 +65,10 @@ jobs:
with:
node-version: '18.x'

- name: Extract Package Version
id: extract_version
run: echo "package_version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Authenticate to npm registry
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit b03c0a7

Please sign in to comment.