Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating github workflows for npm publish #32

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading