diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2cc3219 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Node.js Package + +on: + release: + types: [created] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_nuget_installer_api_token}} diff --git a/package.json b/package.json index f878ac2..bac22f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vscode-nuget-installer-api", - "version": "0.0.0", + "version": "1.0.0", "description": "Contracts for VS Code Nuget Installer", "main": "out/index.js", "types": "out/index.d.ts",