Skip to content

Conversation

@dbcfd
Copy link
Contributor

@dbcfd dbcfd commented Jul 21, 2023

No description provided.

@dbcfd dbcfd requested review from PaulLeCam and willex July 21, 2023 22:15
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
Copy link
Contributor

Choose a reason for hiding this comment

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

How/where is this secret defined please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a secret defined for the action, that can be at repository or organization level. https://docs.github.com/en/actions/security-guides/encrypted-secrets

title: "chore: update versions"
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed? If so, how is this token defined please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a secret provided by github which allows actions to do actions against the repository, such as creating pull requests or pushing code. https://docs.github.com/en/actions/security-guides/automatic-token-authentication

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.

3 participants