Merge pull request #853 from DSI-HUG/dependabot/npm_and_yarn/postcss-… #314
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 | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
jobs: | |
ci_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.DSI_HUG_BOT_GITHUB_TOKEN }} | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org/ | |
- name: Install latest npm | |
run: npm install -g npm@latest | |
- name: Install dependencies | |
run: npm clean-install | |
- name: Build | |
run: npm run build:lib | |
- name: Lint | |
run: npm run lint | |
- name: Semantic Release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.DSI_HUG_NPM_TOKEN }} | |
NPM_TOKEN: ${{ secrets.DSI_HUG_NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.DSI_HUG_BOT_GITHUB_TOKEN }} | |
GIT_AUTHOR_NAME: dsi-hug-bot | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: dsi-hug-bot | |
GIT_COMMITTER_EMAIL: [email protected] | |
run: npm run release:ci | |
- name: Merge release back to develop | |
if: github.ref == 'refs/heads/master' | |
uses: everlytic/[email protected] | |
with: | |
github_token: ${{ secrets.DSI_HUG_BOT_GITHUB_TOKEN }} | |
source_ref: 'master' | |
target_branch: 'develop' | |
commit_message_template: 'merge branch {source_ref} of github.com:DSI-HUG/dejajs-components into {target_branch} [skip ci]' |