Skip to content

Merge branch 'main' of github.com:utomic-media/directus-extension-fie… #21

Merge branch 'main' of github.com:utomic-media/directus-extension-fie…

Merge branch 'main' of github.com:utomic-media/directus-extension-fie… #21

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Release
# Controls when the workflow will run
on:
push:
tags:
- 'v*'
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Setup node 👷🏽‍♂️
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm 👷🏽‍♂️
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 7
run_install: false
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Run tests 🧪
run: pnpm test
- name: Build files 🔨
run: pnpm build
- name: Add release to Github 💾
uses: ncipollo/release-action@v1
with:
artifacts: "dist/app.js,dist/api.js,package.json"
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
- name: Add release to npm 💾
run: pnpm publish --no-git-checks # --no-git-checks as we're not on a branch but a tag!
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}