Skip to content

Commit

Permalink
Merge pull request #32 from Boulevard/fix-release
Browse files Browse the repository at this point in the history
updating github workflows for npm publish
  • Loading branch information
patsissons authored Jan 10, 2025
2 parents f5e07bb + bea561b commit 9294c15
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ runs:
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install node modules
- name: Configure npmrc
shell: bash
run: |
echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> .npmrc
echo "registry=https://registry.npmjs.org" >> .npmrc
echo "always-auth=true" >> .npmrc
yarn install --frozen-lockfile
- name: Install node modules
shell: bash
run: yarn install --frozen-lockfile
1 change: 1 addition & 0 deletions .github/workflows/pr.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
uses: ./.github/actions/install-dependencies
- run: npm test
env:
TZ: "America/Los_Angeles"
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }}
6 changes: 2 additions & 4 deletions .github/workflows/release.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ jobs:
env:
TZ: "America/Los_Angeles"
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }}

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false

- run: npm run build
# if publish is failing, the current token has likely expired and a new token needs to be created
# create a new granular token with read/write access to expire in 1 year at https://www.npmjs.com/settings/blvd-it/tokens/
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boulevard/blvd-book-sdk",
"version": "2.0.6",
"version": "2.0.7",
"description": "A JS client for the Boulevard API",
"main": "lib/blvd.js",
"typings": "lib/blvd.js",
Expand Down

0 comments on commit 9294c15

Please sign in to comment.