| name: Node.js Package Gitm | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| # Setup .npmrc file to publish to npm | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: '14.x' | ||
| registry-url: 'https://registry.npmjs.org' | ||
| - run: npm install | ||
| # Publish to npm | ||
| - run: npm publish --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| # Setup .npmrc file to publish to GitHub Packages | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| registry-url: 'https://npm.pkg.github.com' | ||
| # Defaults to the user or organization that owns the workflow file | ||
| scope: '@snowdream' | ||
| # Publish to GitHub Packages | ||
| - run: npm publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
+1
-1
| { | ||
| "name": "gitm", | ||
| "description": "A simple but useful tool to manage multiple git repositories.", | ||
| "version": "0.3.8", | ||
| "version": "0.3.9", | ||
| "author": "snowdream <sn0wdr1am@icloud.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/snowdream/gitm", |
98585
0.96%28
3.7%