juanfranblanco / vscode-solidity

Visual Studio Code language support extension for Solidity smart contracts in Ethereum https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity
MIT License
871 stars 187 forks source link

ci: automate publishing package to npm #429

Open llllvvuu opened 9 months ago

llllvvuu commented 9 months ago

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 commented 9 months ago

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

juanfranblanco commented 4 months ago

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

llllvvuu commented 4 months ago

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

juanfranblanco commented 4 months ago

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