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

chore: add github workflow to publish package to npm #48

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

MSzalowski
Copy link
Collaborator

List of changes

  • set up workflow for publishing the package to npm

To do

  • Add NPM_TOKEN into secrets
  • Specify needed node version (initially set as 20)

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nebojsact Please set the needed node version

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node version is ok, we just need NPM_TOKEN :)

NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish to npm
run: npm publish
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just publish, as package.json already handles the build before publishing

Copy link

github-actions bot commented Dec 5, 2024

✅ All checks succeeded

- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nebojsact nebojsact merged commit 2b39a7c into dev Dec 25, 2024
1 check passed
Copy link

@MSzalowski
This PR is in the tag: dev-2b39a7c140115f68d0941b093e58dbbb01eff699 , for backend service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants