0.6.3 #50
Workflow file for this run
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 Package to npmjs | |
# change branch name to re-enable pipeline | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: npm ci | |
run: | | |
npm ci | |
- name: Build esm package | |
run: | | |
npm run rollup | |
- name: release | |
uses: actions/create-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: false | |
release_name: ${{ github.ref }} | |
tag_name: ${{ github.ref }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
VERSION: ${{ github.ref_name }} | |
- name: Sentry Release | |
uses: getsentry/[email protected] | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
SENTRY_URL: ${{ secrets.SENTRY_URL }} | |
with: | |
environment: production | |
sourcemaps: './dist/esm/' | |
ignore_missing: true | |
ignore_empty: true | |
version: ${{ github.ref_name }} | |
- name: Deploy to cdn (version) | |
uses: Creepios/[email protected] | |
with: | |
host: ${{ secrets.FTP_SERVER_URL }} | |
port: 22 | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
localPath: "dist" | |
remotePath: "hermine-chat/versions/${{ github.ref_name }}/" | |
env: | |
release_name: ${{ github.ref_name }} | |
- name: Deploy to cdn (current) | |
uses: Creepios/[email protected] | |
with: | |
host: ${{ secrets.FTP_SERVER_URL }} | |
port: 22 | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
localPath: "dist" | |
remotePath: "hermine-chat/current/" | |
- name: Deploy to npm | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |