1.3.0 #129
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release to Registry | |
on: | |
release: | |
types: [published] | |
jobs: | |
npm_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
- run: yarn | |
- run: npm -g install [email protected] | |
- run: whoami && node -v && ls -lah && tsc -v | |
- run: npm -g install @oclif/dev-cli @oclif/help | |
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | |
- run: npm --no-git-tag-version version ${{ github.event.release.tag_name }} | |
- run: tsc -b | |
- run: oclif-dev manifest | |
- run: ls -lah ./ | |
- run: npm publish --access public | |
npm_test: | |
needs: [npm_publish] | |
runs-on: ubuntu-latest | |
container: | |
image: node:lts-alpine | |
steps: | |
- run: npm -g install @jahia/jahia-reporter@${{ github.event.release.tag_name }} | |
- run: jahia-reporter --help | |
- run: jahia-reporter testrail --help | |
- run: jahia-reporter zencrepes --help | |
- run: jahia-reporter slack --help | |
docker: | |
needs: [npm_test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Get release version | |
id: get_version | |
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV | |
- name: Publish to Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: jahia/jahia-reporter | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
tags: 'latest,${{ env.RELEASE_VERSION }}' |