-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (41 loc) · 1.21 KB
/
publish.yaml
File metadata and controls
47 lines (41 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Publish
on:
push:
branches: main
jobs:
publish:
runs-on: ubuntu-latest
outputs:
ws_worker_tagged: ${{ steps.tags.outputs.ws_worker_tagged }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
- uses: actions/setup-node@v6
with:
node-version: '22.12'
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm build
- run: pnpm test
- run: pnpm config set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm publish -r --report-summary --publish-branch main --access=public
- run: git config user.name ${{ secrets.GH_USER }}
- run: git config user.email ${{ secrets.GH_EMAIL }}
- name: Push tags
id: tags
run: |
pnpm changeset tag
if git tag -l '@openfn/ws-worker@*' | grep -q .; then
echo "ws_worker_tagged=true" >> $GITHUB_OUTPUT
fi
git push --tags
- run: pnpm run generate-slack-report
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
dockerize:
needs: publish
uses: ./.github/workflows/dockerize.yaml
secrets: inherit