vscode-solidity icon indicating copy to clipboard operation
vscode-solidity copied to clipboard

ci: automate publishing package to npm

Open llllvvuu opened this issue 1 year ago • 4 comments

Before merging this PR, NPM_TOKEN must be provided to GitHub:

repository > Settings > Secrets and variables > Actions > New repository secret

The NPM_TOKEN can be created at https://www.npmjs.com/

profile pic > Account > Access Tokens > Generate New Token > Granular Access Token

llllvvuu avatar Sep 23 '23 08:09 llllvvuu

Example run: https://github.com/llllvvuu/vscode-solidity/actions/runs/6282710348/job/17062453049 Example published: https://www.npmjs.com/package/@llllvvuu/vscode-solidity-langserver

llllvvuu avatar Sep 23 '23 08:09 llllvvuu

@llllvvuu I saw this, and forgot to mention that pushing automatically to npm is a bit scary with key management.

juanfranblanco avatar Feb 08 '24 11:02 juanfranblanco

GitHub Actions secrets are pretty secure, but you could publish manually if you prefer.

llllvvuu avatar Feb 08 '24 17:02 llllvvuu

ok I am keeping it open, just in case :)

juanfranblanco avatar Feb 13 '24 16:02 juanfranblanco