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.

32 lines
952 B

  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 checkout master
  23. - run: git add package.json
  24. - run: git commit --message "release $TAG"
  25. env:
  26. TAG: ${{ github.event.release.tag_name }}
  27. - run: git remote add deploy https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
  28. env:
  29. GITHUB_TOKEN: ${{ secrets.github_token }}
  30. - run: git push deploy master