Skip to content

v0.0.104

v0.0.104 #66

Workflow file for this run

name: '🚀 release'
on:
release:
types: [published]
jobs:
release:
name: 🚀 release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.22.1]
steps:
- uses: actions/checkout@v3
- name: 🟢 node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
- name: 📚 Install packages
run: yarn install --frozen-lockfile
- name: 🏗️ build
run: yarn build
- name: 🚀 publish
run: npm publish --access public
working-directory: dist/ion
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- name: Send message to Google Chat
run: |
API_KEY="${{ secrets.GOOGLE_CHAT_API_KEY }}"
TOKEN="${{ secrets.GOOGLE_CHAT_TOKEN }}"
SPACE_ID="${{ secrets.SPACE_ID }}"
MESSAGE="Ion - Nova versão disponível!"
curl -X POST \
-H "Content-Type: application/json; charset=UTF-8" \
-d "{\"text\": \"${MESSAGE}\"}" \
"https://chat.googleapis.com/v1/spaces/${SPACE_ID}/messages?key=${API_KEY}&token=${TOKEN}"