Skip to content

Commit 3c76843

Browse files
authored
docs: pin actions to versions for future releases
1 parent 608c9c6 commit 3c76843

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ workflow "Install and Publish" {
5858
}
5959
6060
action "Install" {
61-
uses = "actions/npm@master"
61+
uses = "actions/npm@1.0.0"
6262
args = "install"
6363
}
6464
6565
action "Publish" {
6666
needs = "Install"
67-
uses = "bycedric/ci-expo@master"
67+
uses = "byCedric/ci-expo@2.1.0"
6868
args = "publish"
6969
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
7070
}
@@ -83,13 +83,13 @@ workflow "Install and Publish" {
8383
}
8484
8585
action "Install" {
86-
uses = "actions/npm@master"
86+
uses = "actions/npm@1.0.0"
8787
args = "install"
8888
}
8989
9090
action "Test" {
9191
needs = "Install"
92-
uses = "actions/npm@master"
92+
uses = "actions/npm@1.0.0"
9393
args = "test"
9494
}
9595
@@ -101,18 +101,16 @@ action "Filter branch" {
101101
102102
action "Publish" {
103103
needs = "Filter branch"
104-
uses = "bycedric/ci-expo@master"
104+
uses = "byCedric/ci-expo@2.1.0"
105105
args = "publish"
106106
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
107107
}
108108
```
109109

110110
### Test and build web every day at 08:00
111111

112-
You can add as many extra steps in a workflow as you want.
113-
Here we've added a test step, that basically invokes `npm test` using the [NPM action][link-actions-npm].
114-
It also doesn't listen to push events.
115-
Instead, it's scheduled to run every day at 08:00.
112+
The most significant change here is that we've changed the workflow trigger.
113+
Instead of listening to push events, it's scheduled to run every day at 08:00.
116114

117115
> For web builds, you don't need to be authenticated.
118116
> That's why `secrets = [...]` is omitted here.
@@ -124,19 +122,19 @@ workflow "Install, Test and Build Web" {
124122
}
125123
126124
action "Install" {
127-
uses = "actions/npm@master"
125+
uses = "actions/npm@1.0.0"
128126
args = "install"
129127
}
130128
131129
action "Test" {
132130
needs = "Install"
133-
uses = "actions/npm@master"
131+
uses = "actions/npm@1.0.0"
134132
args = "test"
135133
}
136134
137135
action "Publish" {
138136
needs = "Test"
139-
uses = "bycedric/ci-expo@master"
137+
uses = "byCedric/ci-expo@2.1.0"
140138
args = "build:web"
141139
}
142140
```

0 commit comments

Comments
 (0)