From d3a24414318b2c3492b13f6aa35c2972e950c29d Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 5 Nov 2021 10:33:05 +0300 Subject: [PATCH] ci(workflows): revise and update workflows, bump package version (#4) * ci(workflows): revise and update workflows, bump package version - [X] don't save bash history in trunk on push workflow; - [X] don't exit with error if package version has not been changes and publishing fails; * ci(premerge): fix premerge workflow - [X] fix fonts generator testing step - use the correct command; --- .github/workflows/pr-validation.yml | 5 ++--- .github/workflows/{master.yml => trunk-on-push.yml} | 10 ++++++---- package.json | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) rename .github/workflows/{master.yml => trunk-on-push.yml} (83%) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 155dce0..62c541c 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -1,7 +1,6 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: PR validation +name: pr-validation on: pull_request: @@ -40,4 +39,4 @@ jobs: run: yarn lint - name: Generate - run: yarn generate + run: yarn install diff --git a/.github/workflows/master.yml b/.github/workflows/trunk-on-push.yml similarity index 83% rename from .github/workflows/master.yml rename to .github/workflows/trunk-on-push.yml index abff856..24dcc05 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/trunk-on-push.yml @@ -1,7 +1,6 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Master +name: trunk-on-push on: push: @@ -25,6 +24,9 @@ jobs: with: fetch-depth: 0 + - name: Don't save Bash session history + run: unset HISTFILE + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: @@ -38,10 +40,10 @@ jobs: - name: Generate run: yarn install - - name: Publish Package to npmjs.org + - name: Publish the package (npmjs.org) run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_TOKEN }}" > ~/.npmrc - npm publish --access public + npm publish --access public || true find ~/.npmrc -exec shred -fuz {} + env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }} diff --git a/package.json b/package.json index 00b6d8e..d191254 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "material-design-icon-fonts-self-hosted-web", - "version": "1.0.0", + "version": "1.0.1", "description": "Self-hosted version generator of Google Material Design icon fonts for web apps.", "keywords": [ "icons",