Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- dora-js-publish

concurrency:
group: ${{ github.ref_name }}-docs
Expand All @@ -22,7 +21,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
Expand All @@ -38,7 +37,7 @@ jobs:
run: npm run build
- name: Generate static build for Compute
run: |
npx @fastly/compute-js-static-publish --preset=docusaurus --service-id=${{ secrets.DOCS_SERVICE_ID }}
npx @fastly/compute-js-static-publish@3 --preset=docusaurus --service-id=${{ secrets.DOCS_SERVICE_ID }}
- name: Deploy docs to Compute
uses: fastly/compute-actions@main
with:
Expand Down
53 changes: 16 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,20 @@
name: CI

name: Release CI
on:
- workflow_dispatch
- pull_request
push:
tags:
- 'v*'

concurrency:
group: ${{ github.ref_name }}-expressly
cancel-in-progress: true
permissions:
id-token: write
contents: read

jobs:
build:
name: expressly
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.AUTO_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline
- name: Node modules cache
id: node-modules-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-expressly-${{ secrets.cache_key_epoch_time }}-${{ hashFiles('yarn.lock') }}
- name: Compile expressly
run: yarn build
- name: Test expressly
run: yarn test
- name: Publish
run: |
git fetch origin 'refs/tags/*:refs/tags/*'
yarn auto shipit
process-version:
uses: fastly/devex-reusable-workflows/.github/workflows/process-semver-v1.yml@main
publish_npm:
needs: process-version
uses: fastly/devex-reusable-workflows/.github/workflows/publish-javascript-npmjs-v1.yml@main
with:
expected_pkg_name: "@fastly/expressly"
expected_pkg_version: ${{ needs.process-version.outputs.version }}
dist_tag: ${{ needs.process-version.outputs.dist_tag }}
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
node_modules
dist
.dora
.env
.yarn
.yarnrc.yml
yarn-error.log
package-lock.json
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
22
2 changes: 1 addition & 1 deletion docs/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
22
Loading
Loading