publish_and_install.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Publish & Install
  2. # Temporarily disabled this workflow because the last step (installing from Verdaccio) is consistently
  3. # failing and despite numerous attempts to stabilize, it still fails. Therefore this is not useful at
  4. # the moment.
  5. # on:
  6. # push:
  7. # branches:
  8. # - master
  9. # pull_request:
  10. # branches:
  11. # - master
  12. on:
  13. deployment
  14. jobs:
  15. publish_install:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v1
  19. - name: Use Node.js 12.x
  20. uses: actions/setup-node@v1
  21. with:
  22. node-version: 12.4.x
  23. - name: Install & bootstrap
  24. run: |
  25. yarn install
  26. yarn bootstrap
  27. env:
  28. CI: true
  29. - name: Install Verdaccio
  30. run: |
  31. npm install -g verdaccio
  32. mkdir -p $HOME/.config/verdaccio
  33. cp -v ./.github/workflows/verdaccio/config.yaml $HOME/.config/verdaccio/config.yaml
  34. verdaccio --config $HOME/.config/verdaccio/config.yaml &
  35. - name: Publish to Verdaccio
  36. run: |
  37. npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}
  38. npm set //localhost:4873/:_authToken=${{ secrets.VERDACCIO_AUTH_TOKEN }}
  39. npm set registry=http://localhost:4873/
  40. yarn lerna publish prepatch --preid ci --no-push --no-git-tag-version --no-commit-hooks --force-publish "*" --yes --dist-tag ci --registry http://localhost:4873/
  41. - name: Install via @vendure/create
  42. run: |
  43. mkdir -p $HOME/install
  44. cd $HOME/install
  45. npm dist-tag ls @vendure/create
  46. npx @vendure/create@ci test-app --ci --use-npm --log-level verbose