Skip to content

Commit

Permalink
Merge pull request #48 from adzerk/simonramzi/sc-48140/javascript-dec…
Browse files Browse the repository at this point in the history
…ision-sdk-ignores-some-fields

[sc-48140] fixed working-directory references.
  • Loading branch information
honeycomb-cheesecake authored Aug 14, 2023
2 parents 8ea2b94 + 6a9c8ee commit bc5534a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish-decision-spec-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
- id: a9c19221-2149-41f2-91d7-e8411bf3ecc5
name: Checkout Repository
uses: actions/checkout@v3

- id: ba48f425-ccc1-4288-8ff6-4a1812e83224
name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18

- id: e75378b3-35d5-4f84-a871-d47e518f2d04
name: Install Dependencies
run: npm clean-install
Expand All @@ -40,25 +40,25 @@ jobs:

- id: e842d27d-141c-47f2-b64c-2c5702984edf
name: Compile Package
working-directory: ${WORKINGDIRECTORY_DECISION}
working-directory: ${{ env.WORKINGDIRECTORY_DECISION }}
run: tsc --outDir dist --declaration *.ts

- id: edd89b5d-54fa-4951-8206-54b1cef91968
name: Configure Project-Level .npmrc File
working-directory: ${WORKINGDIRECTORY_DECISION}
working-directory: ${{ env.WORKINGDIRECTORY_DECISION }}
run: npm config set --location=project @adzerk:registry=https://'${NPM_REGISTRY}' //'${NPM_REGISTRY}'/:_authToken='${NPM_SECRET}'

- id: c8734e87-1bb8-4340-9ab2-fd5cabb1ac6b
name: Update Version package.json to Released Version
working-directory: ${WORKINGDIRECTORY_DECISION}
working-directory: ${{ env.WORKINGDIRECTORY_DECISION }}
run: npm pkg set "version"="${GITHUB_REF_NAME}"

- id: b5abe142-c11f-4951-8809-4bc118b4027d
name: Publish Package to NPM
env:
NPM_REGISTRY: registry.npmjs.org
NPM_SECRET: ${{ secrets.NPM_TOKEN }}
working-directory: ${WORKINGDIRECTORY_DECISION}
working-directory: ${{ env.WORKINGDIRECTORY_DECISION }}
run: |
echo "Publishing tag ${GITHUB_REF_NAME} to ${NPM_REGISTRY}."
npm publish --dry-run
Expand All @@ -68,7 +68,7 @@ jobs:
env:
NPM_REGISTRY: npm.pkg.github.com
NPM_SECRET: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${WORKINGDIRECTORY_DECISION}
working-directory: ${{ env.WORKINGDIRECTORY_DECISION }}
run: |
echo "Publishing tag ${GITHUB_REF_NAME} to ${NPM_REGISTRY}."
npm publish --dry-run
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- GitHub Actions working directory references `publish-decision-spec-packages.yml`. By [@honeycomb-cheesecake](https://github.com/honeycomb-cheesecake).

## [1.0.3] - 2023-08-14

### Fixed

- `package-lock.json` file as prior one didn't work with `npm clean-install`. By [@honeycomb-cheesecake](https://github.com/honeycomb-cheesecake).

### Changed
Expand Down

0 comments on commit bc5534a

Please sign in to comment.