Skip to content

Release 1.0.0

Release 1.0.0 #11

Workflow file for this run

name: Publish to NPM
on:
pull_request:
types:
- closed
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: πŸ“₯ Install dependencies
run: npm install
- name: πŸ”§ Build
run: npm run build
- name: πŸ“¦ Publish package on NPM
run: cd dist && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_ACCESS_TOKEN }}
- name: πŸ”” Send Notification
env:
COMMUNITY_NOTIFICATION_CHANNEL_API_ENDPOINT:
${{ secrets.COMMUNITY_NOTIFICATION_CHANNEL_API_ENDPOINT }}
run: |
VERSION=$(jq -r '.version' dist/package.json)
VERSION_URL="https://www.npmjs.com/package/@geneui/tokens/v/$VERSION"
MESSAGE="@channel\nExciting news πŸš€\n The new version [$VERSION]($VERSION_URL) of the **@geneui/tokens** is published with new features and improvements! on NPM"
curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"$MESSAGE\", \"username\": \"NPM\", \"icon_url\": \"https://static-production.npmjs.com/b0f1a8318363185cc2ea6a40ac23eeb2.png\"}" $COMMUNITY_NOTIFICATION_CHANNEL_API_ENDPOINT
- name: πŸš€ Run bump up commit
run: |
git config --global user.name "Hamik Hambardzumyan"
git config --global user.email "hamik.hambardzumyan@softconstruct.com"
npm run bump-up-commit