dmenu for bitwarden-cli
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. name: Npm Publish
  2. on:
  3. release:
  4. types: [created]
  5. jobs:
  6. publish-npm:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - uses: actions/setup-node@v1
  11. with:
  12. node-version: 12
  13. registry-url: https://registry.npmjs.org/
  14. - run: npm version --no-git-tag-version $TAG
  15. env:
  16. TAG: ${{ github.event.release.tag_name }}
  17. - run: npm publish
  18. env:
  19. GITHUB_TOKEN: ${{ secrets.github_token }}
  20. NODE_AUTH_TOKEN: ${{secrets.npm_token}}
  21. - run: git fetch origin master
  22. - run: git config --local user.email "action@github.com"
  23. - run: git config --local user.name "GitHub Publish Action"
  24. - run: git checkout master
  25. - run: git add package.json
  26. - run: git commit --message "release $TAG"
  27. env:
  28. TAG: ${{ github.event.release.tag_name }}
  29. - run: git remote add deploy https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
  30. env:
  31. GITHUB_TOKEN: ${{ secrets.github_token }}
  32. - run: git push deploy master