Skip to content

Commit

Permalink
ci(workflows): revise and update workflows, bump package version (#4)
Browse files Browse the repository at this point in the history
* 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;
  • Loading branch information
rfprod authored Nov 5, 2021
1 parent db3eb43 commit d3a2441
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -40,4 +39,4 @@ jobs:
run: yarn lint

- name: Generate
run: yarn generate
run: yarn install
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d3a2441

Please sign in to comment.